Docker distroless image how to add customize certificate to trust store?
问题 gcr.io/distroless/java How to add custom pki certificate? 回答1: The distroless images are based on Debian 9, so you can do a multi-stage build and do something like the following: FROM debian AS build-env # Add CA files ADD my-ca-file.crt /usr/local/share/ca-certificates/my-ca-file.crt RUN update-ca-certificates FROM gcr.io/distroless/base COPY --from=build-env /etc/ssl/certs /etc/ssl/certs 来源: https://stackoverflow.com/questions/52636213/docker-distroless-image-how-to-add-customize