mirror of
https://github.com/cert-manager/webhook-example.git
synced 2026-03-16 18:02:51 +01:00
feat: use distroless static debian 13 docker image
This commit is contained in:
parent
e4cad794f7
commit
69aca23246
1 changed files with 2 additions and 4 deletions
|
|
@ -6,11 +6,9 @@ COPY . .
|
|||
|
||||
RUN go mod download
|
||||
|
||||
RUN CGO_ENABLED=0 go build -o webhook -ldflags '-w -extldflags "-static"' .
|
||||
RUN CGO_ENABLED=0 go build -o webhook .
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache ca-certificates
|
||||
FROM gcr.io/distroless/static-debian13
|
||||
|
||||
COPY --from=build /workspace/webhook /usr/local/bin/webhook
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue