github.com/jfrazelle/docker@v1.1.2-0.20210712172922-bf78e25fe508/hack/make/dynbinary-proxy (about) 1 #!/usr/bin/env bash 2 3 set -e 4 5 ( 6 export IAMSTATIC='false' 7 export LDFLAGS_STATIC_DOCKER='' 8 export BUILDFLAGS=("${BUILDFLAGS[@]/netgo /}") # disable netgo, since we don't need it for a dynamic binary 9 export BUILDFLAGS=("${BUILDFLAGS[@]/osusergo /}") # ditto for osusergo 10 export BUILDFLAGS=("${BUILDFLAGS[@]/static_build /}") # we're not building a "static" binary here 11 12 GO_PACKAGE='github.com/docker/docker/cmd/docker-proxy' 13 BINARY_SHORT_NAME='docker-proxy' 14 source "${MAKEDIR}/.binary" 15 )