github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/hack/make/dynbinary-daemon (about) 1 #!/usr/bin/env bash 2 set -e 3 4 [ -z "$KEEPDEST" ] && rm -rf "$DEST" 5 6 ( 7 export IAMSTATIC='false' 8 export LDFLAGS_STATIC_DOCKER='' 9 export BUILDFLAGS=("${BUILDFLAGS[@]/netgo /}") # disable netgo, since we don't need it for a dynamic binary 10 export BUILDFLAGS=("${BUILDFLAGS[@]/osusergo /}") # ditto for osusergo 11 export BUILDFLAGS=("${BUILDFLAGS[@]/static_build /}") # we're not building a "static" binary here 12 13 GO_PACKAGE='github.com/docker/docker/cmd/dockerd' 14 BINARY_NAME='dockerd' 15 source "${MAKEDIR}/.binary" 16 )