Add a Dockerfile for kgctl
This commit is contained in:
parent
b802489826
commit
7337e4df12
9
Dockerfile-kgctl
Normal file
9
Dockerfile-kgctl
Normal 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"]
|
Loading…
Reference in New Issue
Block a user