dockerfile: add custom ssl certs dir (#88)

The certs should be added to the whitelisted kaniko directory so that
an image build does not override them and possibly affect the push to
the registry.
This commit is contained in:
Matt Rickard 2018-04-15 13:40:17 -07:00 committed by dlorenc
parent 59f09eb07b
commit 2ff7a6556a
1 changed files with 2 additions and 1 deletions

View File

@ -16,10 +16,11 @@
FROM scratch
ADD out/executor /kaniko/executor
ADD files/ca-certificates.crt /etc/ssl/certs/
ADD files/ca-certificates.crt /kaniko/ssl/certs/
ADD files/docker-credential-gcr /usr/local/bin/
ADD files/config.json /root/.docker/
RUN ["docker-credential-gcr", "config", "--token-source=env"]
ENV HOME /root
ENV PATH /usr/local/bin
ENV SSL_CERT_DIR=/kaniko/ssl/certs
ENTRYPOINT ["/kaniko/executor"]