feat: use distroless static debian 13 docker image

This commit is contained in:
Marc Singer 2026-02-23 07:43:44 +01:00
parent e4cad794f7
commit 69aca23246

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