diff --git a/Dockerfile b/Dockerfile index 9c47a57..1d93908 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,9 @@ FROM golang:alpine@sha256:3ad57304ad93bbec8548a0437ad9e06a455660655d9af011d58b99 RUN apk --no-cache add ca-certificates FROM alpine:latest@sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b +# alpine:latest is only rebuilt on alpine point releases, so it can ship packages +# with CVEs that are already patched in the apk repos - pull those fixes in here +RUN apk --no-cache upgrade ARG TARGETPLATFORM # copy the ca-certificate.crt from the build stage COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/