Use scratch base image but certs from alpine (#443)

This commit is contained in:
Geoff Bourne
2025-08-13 15:19:20 -05:00
committed by GitHub
parent 028bfc1bfb
commit 4055f39b19
2 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -8,6 +8,11 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -buildvcs=false ./cmd/mc-router
FROM gcr.io/distroless/static-debian12
FROM alpine AS certs
RUN apk add -U \
ca-certificates
FROM scratch
ENTRYPOINT ["/mc-router"]
COPY --from=certs /etc/ssl/certs/ /etc/ssl/certs
COPY --from=builder /build/mc-router /mc-router