Merge pull request #11 from pr0ton11/feat/use-distroless-container-image

Use smaller distroless docker image as base
This commit is contained in:
Marc Singer 2026-02-23 07:45:19 +01:00 committed by GitHub
commit eafb49c65d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,11 +6,9 @@ COPY . .
RUN go mod download 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 FROM gcr.io/distroless/static-debian13
RUN apk add --no-cache ca-certificates
COPY --from=build /workspace/webhook /usr/local/bin/webhook COPY --from=build /workspace/webhook /usr/local/bin/webhook