Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
c8577edf0c
|
@ -7,7 +7,7 @@ ENV DEFECTDOJO_TOKEN=""
|
|||||||
|
|
||||||
ARG APP_DIR=/opt/app
|
ARG APP_DIR=/opt/app
|
||||||
ARG ADDITIONAL_CA_URL="x"
|
ARG ADDITIONAL_CA_URL="x"
|
||||||
ARG ADDITIONAL_CA_CHECKSUM=""
|
ARG ADDITIONAL_CA_CHECKSUM="y"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache syft &&\
|
apk add --no-cache syft &&\
|
||||||
@ -15,6 +15,7 @@ RUN \
|
|||||||
mkdir -p $APP_DIR &&\
|
mkdir -p $APP_DIR &&\
|
||||||
chown user:user $APP_DIR &&\
|
chown user:user $APP_DIR &&\
|
||||||
echo $ADDITIONAL_CA_URL &&\
|
echo $ADDITIONAL_CA_URL &&\
|
||||||
|
echo $ADDITIONAL_CA_CHECKSUM &&\
|
||||||
if [ "$ADDITIONAL_CA_URL" != "x" ]; then \
|
if [ "$ADDITIONAL_CA_URL" != "x" ]; then \
|
||||||
cd /usr/share/ca-certificates; \
|
cd /usr/share/ca-certificates; \
|
||||||
wget --no-check-certificate -O custom-ca.crt $ADDITIONAL_CA_URL; \
|
wget --no-check-certificate -O custom-ca.crt $ADDITIONAL_CA_URL; \
|
||||||
|
Reference in New Issue
Block a user