mirror of
https://github.com/cert-manager/webhook-example.git
synced 2026-03-17 02:12:51 +01:00
15 lines
252 B
Docker
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"]
|