mirror of
				https://github.com/docker/compose.git
				synced 2025-10-29 18:23:48 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			407 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			407 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -ex
 | |
| 
 | |
| ./script/clean
 | |
| 
 | |
| DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
 | |
| 
 | |
| docker build . \
 | |
|        --target bin \
 | |
|        --build-arg DISTRO=debian \
 | |
|        --build-arg GIT_COMMIT="${DOCKER_COMPOSE_GITSHA}" \
 | |
|        --output dist/
 | |
| ARCH=$(uname -m)
 | |
| # Ensure that we output the binary with the same name as we did before
 | |
| mv dist/docker-compose-linux-amd64 "dist/docker-compose-Linux-${ARCH}"
 |