Files
drone-helm3/Dockerfile
naumso e656306216
Some checks failed
continuous-integration/drone/push Build is failing
Update Dockerfile
2024-02-20 19:48:58 +03:00

19 lines
483 B
Docker

FROM golang:1.22-alpine3.19 as builder
ENV GO111MODULE=on
WORKDIR /app
COPY --link go.mod .
COPY --link go.sum .
RUN go mod download
COPY --link . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/bin/drone-helm ./cmd/drone-helm
# --- Copy the cli to an image with helm already installed ---
FROM alpine/helm:3.14
COPY --link --from=builder /go/bin/drone-helm /bin/drone-helm
COPY --link ./assets/kubeconfig.tpl /root/.kube/config.tpl
ENTRYPOINT [ "/bin/drone-helm" ]