Skip to content

Commit

Permalink
fix cp
Browse files Browse the repository at this point in the history
Signed-off-by: Nianyu Shen <[email protected]>
  • Loading branch information
nianyush committed Sep 16, 2024
1 parent 2c5e518 commit 869791f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ ARG NO_PROXY
WORKDIR /certs
COPY certs/ /certs/
RUN if [ "${OS_DISTRIBUTION}" = "ubuntu" ]; then \
cp -f /certs/ /usr/local/share/ca-certificates/ && \
cp -f /certs/* /usr/local/share/ca-certificates/ && \
update-ca-certificates; \
fi
RUN if [ "${OS_DISTRIBUTION}" = "opensuse-leap" ]; then \
cp -f /certs/ /tmp//usr/share/pki/trust/anchors/ && \
cp -f /certs/* /tmp//usr/share/pki/trust/anchors/ && \
update-ca-certificates; \
fi

RUN if [ "${OS_DISTRIBUTION}" = "rhel" ]; then \
cp -f /certs/ /etc/pki/ca-trust/source/anchors/ && \
cp -f /certs/* /etc/pki/ca-trust/source/anchors/ && \
update-ca-trust; \
fi
RUN rm -rf /certs
Expand Down

0 comments on commit 869791f

Please sign in to comment.