mirror of
https://github.com/cert-manager/webhook-example.git
synced 2026-03-16 18:02:51 +01:00
17 lines
289 B
Docker
17 lines
289 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
|
|
|
|
RUN chmod +x /usr/local/bin/webhook
|
|
|
|
ENTRYPOINT ["webhook"]
|