Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nianyush committed Oct 17, 2023
1 parent 98dd2b8 commit 3454530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ ARG NO_PROXY
COPY sc.crt /tmp/sc.crt
RUN echo $OS_DISTRIBUTION
RUN echo $PROXY_CERT_PATH
RUN if [ "${OS_DISTRIBUTION}" = "ubuntu" ] && [ ! -z ${PROXY_CERT_PATH} ]; then \
RUN if [ "${OS_DISTRIBUTION}" = "ubuntu" ] && [ ${PROXY_CERT_PATH} != "" ]; then \
cp /tmp/sc.crt /etc/ssl/certs && \
update-ca-certificates; \
fi
RUN if [ "${OS_DISTRIBUTION}" = "opensuse" ] && [ ! -z ${PROXY_CERT_PATH} ]; then \
RUN if [ "${OS_DISTRIBUTION}" = "opensuse" ] && [ ${PROXY_CERT_PATH} != "" ]; then \
cp /tmp/sc.crt /usr/share/pki/trust/anchors && \
update-ca-certificates; \
fi
Expand Down

0 comments on commit 3454530

Please sign in to comment.