Update Dockerfile

This commit is contained in:
Alexandre
2023-09-06 11:57:48 +02:00
committed by GitHub
parent 1ffab47748
commit fdc319fdec

View File

@@ -30,7 +30,6 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0
# Specific modifications
ARG CONFIGLOCATION="/share/nextcloud"
# hadolint ignore=SC2015,SC2086
@@ -129,7 +128,11 @@ RUN \
# Correct nginx files
sed -i "/Strict-Transport-Security/d" /defaults/nginx/site-confs/default.conf.sample && \
sed -i '1h;1!H;$!d;g;s/\(.*\)}/\1/' /defaults/nginx/site-confs/default.conf.sample && \
cat /defaults/nginx_addition >> /defaults/nginx/site-confs/default.conf.sample
cat /defaults/nginx_addition >> /defaults/nginx/site-confs/default.conf.sample && \
\
# Add entrypoint
sed -i "1a if [ ! -f /started ]; then touch /started && exit 0; fi" ha_entrypoint.sh && \
sed -i "1a /./ha_entrypoint.sh" /etc/s6-overlay/s6-rc.d/init-adduser/run
############
# 5 Labels #