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 a499763 commit 5e0fa18
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ FROM $BASE

COPY sc.crt /tmp/sc.crt

RUN if [ "$OS_DISTRIBUTION" = "ubuntu" ]; then \
if [ ! -z $PROXY_CERT_PATH ]; then \
RUN if [[ "${OS_DISTRIBUTION}" = "ubuntu" ] && [ ! -z ${PROXY_CERT_PATH} ]]; then \
cp /tmp/sc.crt /etc/ssl/certs && \
update-ca-certificates; \
fi \
elif [ "$OS_DISTRIBUTION" = "opensuse" ]; then \
if [ ! -z $PROXY_CERT_PATH ]; then \
fi
RUN if [[ "${OS_DISTRIBUTION}" = "opensuse" ] && [ ! -z ${PROXY_CERT_PATH} ]]; then \
cp /tmp/sc.crt /usr/share/pki/trust/anchors && \
update-ca-certificates; \
fi \
fi
RUN cat /tmp/sc.crt
RUN cat /usr/share/pki/trust/anchors/sc.crt
Expand Down

0 comments on commit 5e0fa18

Please sign in to comment.