File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ ifeq ($(DOCKER_CLI_GO_BUILD_CACHE),y)
2121DOCKER_CLI_MOUNTS += -v "$(CACHE_VOLUME_NAME ) :/root/.cache/go-build"
2222endif
2323VERSION = $(shell cat VERSION)
24- ENVVARS = -e VERSION=$(VERSION ) -e GITCOMMIT -e PLATFORM -e TESTFLAGS -e TESTDIRS
24+ ENVVARS = -e VERSION=$(VERSION ) -e GITCOMMIT -e PLATFORM -e TESTFLAGS -e TESTDIRS -e GOOS -e GOARCH -e GOARM
2525
2626# build docker image (dockerfiles/Dockerfile.build)
2727.PHONY : build_docker_image
Original file line number Diff line number Diff line change @@ -22,5 +22,18 @@ export LDFLAGS="\
2222
2323GOOS=" ${GOOS:- $(go env GOHOSTOS)} "
2424GOARCH=" ${GOARCH:- $(go env GOHOSTARCH)} "
25- export TARGET=" build/docker-$GOOS -$GOARCH "
25+ if [ " ${GOARCH} " = " arm" ]; then
26+ GOARM=" ${GOARM:- $(go env GOHOSTARM)} "
27+ fi
28+
29+ TARGET=" build/docker-$GOOS -$GOARCH "
30+ if [ " ${GOARCH} " = " arm" ] && [ -n " ${GOARM} " ]; then
31+ TARGET=" ${TARGET} -v${GOARM} "
32+ fi
33+
34+ if [ " ${GOOS} " = " windows" ]; then
35+ TARGET=" ${TARGET} .exe"
36+ fi
37+ export TARGET
38+
2639export SOURCE=" github.com/docker/cli/cmd/docker"
You can’t perform that action at this time.
0 commit comments