Add a Dockerfile for kgctl

This commit is contained in:
Matthias Baur 2020-11-13 15:16:22 +01:00
parent b802489826
commit 7337e4df12
No known key found for this signature in database
GPG Key ID: 03D4D33731DD0AFB

9
Dockerfile-kgctl Normal file
View File

@ -0,0 +1,9 @@
FROM golang:1.14.2-alpine3.11 as builder
WORKDIR /build
COPY . .
RUN go build -o /kgctl cmd/kgctl/*
FROM alpine:3.11
ENV KUBECONFIG /config
COPY --from=builder /kgctl /kgctl
ENTRYPOINT ["/kgctl"]