5

gcr.io/distroless/java

如何添加自定义 pki 证书?

4

1 回答 1

6

distroless 映像基于 Debian 9,因此您可以进行多阶段构建并执行以下操作:

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
于 2019-03-22T22:57:52.393 回答