Skip to content

Commit

Permalink
docker: Add CA certificates to www image
Browse files Browse the repository at this point in the history
  • Loading branch information
garberg committed May 26, 2024
1 parent 150fbfd commit d545d74
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile.www
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ RUN apt-get update -qy && apt-get upgrade -qy \
&& pip3 --no-input install --no-cache-dir envtpl==0.7.2 \
&& apt-get clean

# Install any additional CA certs from ca_certs folder required by corp proxies etc
RUN mkdir /ca_certs
COPY ca_certs/ /ca_certs/
RUN mkdir -p /usr/local/share/ca-certificates \
&& cp /ca_certs/*.crt /usr/local/share/ca-certificates/ || true \
&& rm -rf /ca_certs \
&& update-ca-certificates
RUN pip3 config set global.cert /etc/ssl/certs/ca-certificates.crt
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt

# Install pynipap, nipap and nipap-www
COPY pynipap /pynipap
COPY nipap /nipap
Expand Down

0 comments on commit d545d74

Please sign in to comment.