Fixing Docker build
This commit is contained in:
@@ -27,5 +27,5 @@ FROM scratch
|
|||||||
COPY --from=builder /usr/bin/virtual-kubelet /usr/bin/virtual-kubelet
|
COPY --from=builder /usr/bin/virtual-kubelet /usr/bin/virtual-kubelet
|
||||||
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
||||||
|
|
||||||
ENTRYPOINT [ "virtual-kubelet" ]
|
ENTRYPOINT [ "/usr/bin/virtual-kubelet" ]
|
||||||
CMD [ "--help" ]
|
CMD [ "--help" ]
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -22,7 +22,7 @@ safebuild:
|
|||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: authors
|
build: authors
|
||||||
@echo "Building..."
|
@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
|
.PHONY: tags
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
Reference in New Issue
Block a user