Files
drone-helm3/Dockerfile
naumso 5642fbcc41
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
Update Dockerfile
2026-03-13 18:52:40 +03:00

19 lines
484 B
Docker

FROM golang:1.24-alpine3.21 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:4.1.3
COPY --link --from=builder /go/bin/drone-helm /bin/drone-helm
COPY --link ./assets/kubeconfig.tpl /root/.kube/config.tpl
ENTRYPOINT [ "/bin/drone-helm" ]