cert-manager-webhook-example/Dockerfile
2026-02-23 07:50:13 +01:00

15 lines
252 B
Docker

FROM golang:1.26.0-alpine AS build
WORKDIR /workspace
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 go build -o webhook .
FROM gcr.io/distroless/static-debian13
COPY --from=build /workspace/webhook /usr/local/bin/webhook
ENTRYPOINT ["webhook"]