From 530b59cd6e18ca9216fa3db82b3daf9b5b9fb980 Mon Sep 17 00:00:00 2001 From: Jun Gong Date: Thu, 28 Mar 2019 11:21:05 +0800 Subject: [PATCH] Change base image to alphine to reduce image size --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1c6dffe46..fb67eb13a 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ generate-code: init rel_bins: go get github.com/mitchellh/gox - gox -osarch=${REL_OSARCH} -ldflags ${LD_FLAGS} \ + CGO_ENABLED=0 gox -osarch=${REL_OSARCH} -ldflags ${LD_FLAGS} \ -output=${BIN_DIR}/{{.OS}}/{{.Arch}}/kube-batch ./cmd/kube-batch images: rel_bins