Use scratch base image but certs from alpine (#443)
This commit is contained in:
+6
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user