mirror of
https://github.com/cert-manager/webhook-example.git
synced 2026-03-16 18:02:51 +01:00
Merge pull request #11 from pr0ton11/feat/use-distroless-container-image
Use smaller distroless docker image as base
This commit is contained in:
commit
eafb49c65d
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