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: