Only build docker-proxy for Linux

Signed-off-by: Rob Murray <rob.murray@docker.com>
This commit is contained in:
Rob Murray
2024-08-05 12:41:38 +01:00
parent 27b322e56b
commit e0c7a839a8
10 changed files with 5 additions and 8 deletions

View File

@@ -2,7 +2,8 @@
set -e
(
# docker-proxy is Linux only
[ "$(go env GOOS)" != 'linux' ] || (
export CGO_ENABLED=0
DOCKER_STATIC=1

View File

@@ -2,7 +2,8 @@
set -e
(
# docker-proxy is Linux only
[ "$(go env GOOS)" != 'linux' ] || (
export LDFLAGS_STATIC=''
export BUILDFLAGS=("${BUILDFLAGS[@]/netgo /}") # disable netgo, since we don't need it for a dynamic binary
export BUILDFLAGS=("${BUILDFLAGS[@]/osusergo /}") # ditto for osusergo