Update Dockerfile

This commit is contained in:
Alexandre
2022-01-09 17:07:05 +01:00
committed by GitHub
parent 2a7f38c8ea
commit 677dd100f0

View File

@@ -32,9 +32,8 @@ RUN \
&& sed -i 's| /config| /data|g' /etc/logrotate.d/scrutiny \ && sed -i 's| /config| /data|g' /etc/logrotate.d/scrutiny \
&& sed -i 's| /config| /data|g' /etc/crontabs/root \ && sed -i 's| /config| /data|g' /etc/crontabs/root \
# correct url paths # correct url paths
&& grep -rl '/web/' /app/scrutiny-web/ | xargs sed -i 's|/web/|./|g' \ && grep -rl '/web/' /app/scrutiny-web/ | xargs sed -i 's|/web/|./|g'
&& if [ -f /run.sh ]; then chmod 777 /run.sh; fi
################## ##################
# 3 Install apps # # 3 Install apps #
################## ##################
@@ -60,11 +59,8 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
# 4 Entrypoint # # 4 Entrypoint #
################ ################
#RUN chmod 777 /entrypoint.sh # Collector
#WORKDIR / RUN chmod 777 /run.sh
#ENTRYPOINT [ "/usr/bin/env" ]
#CMD [ "/entrypoint.sh" ]
#SHELL ["/bin/bash", "-o", "pipefail", "-c"]
############ ############
# 5 Labels # # 5 Labels #