From b1f909c9f3c757710ae4c44e555fa5019a316039 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 +- deployment/images/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 diff --git a/deployment/images/Dockerfile b/deployment/images/Dockerfile index cbdd9165c..d804c4f3e 100644 --- a/deployment/images/Dockerfile +++ b/deployment/images/Dockerfile @@ -1,4 +1,4 @@ -From ubuntu:18.04 +From alpine:3.9 ADD kube-batch /usr/local/bin