mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02: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}"
|