From 1585999226a3313872692d6286b9f47733a44c03 Mon Sep 17 00:00:00 2001 From: "Erik St. Martin" Date: Tue, 5 Dec 2017 13:48:09 -0600 Subject: [PATCH] Fixing Docker build --- Dockerfile | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c43d19fd8..1587ed68b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,5 +27,5 @@ FROM scratch COPY --from=builder /usr/bin/virtual-kubelet /usr/bin/virtual-kubelet COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs -ENTRYPOINT [ "virtual-kubelet" ] +ENTRYPOINT [ "/usr/bin/virtual-kubelet" ] CMD [ "--help" ] diff --git a/Makefile b/Makefile index 3a8fee117..00ba59dee 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ safebuild: .PHONY: build build: authors @echo "Building..." - $Q go build -o bin/$(binary) $(if $V,-v) $(VERSION_FLAGS) $(IMPORT_PATH) + $Q CGO_ENABLED=0 go build -a -tags netgo -ldflags '-extldflags "-static"' -o bin/$(binary) $(if $V,-v) $(VERSION_FLAGS) $(IMPORT_PATH) .PHONY: tags tags: