Skip to content

Instantly share code, notes, and snippets.

@AriESQ
Created January 24, 2023 00:14
Show Gist options
  • Save AriESQ/d594893751e2e343544ba60865cb752f to your computer and use it in GitHub Desktop.
Save AriESQ/d594893751e2e343544ba60865cb752f to your computer and use it in GitHub Desktop.
Adding a root certificate store to a docker scratch base image
FROM scratch
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /your/binary /somewhere/binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment