mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-06 08:58:09 +02:00
Update Dockerfile
This commit is contained in:
@@ -30,7 +30,6 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
|||||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||||
S6_SERVICES_GRACETIME=0
|
S6_SERVICES_GRACETIME=0
|
||||||
|
|
||||||
|
|
||||||
# Specific modifications
|
# Specific modifications
|
||||||
ARG CONFIGLOCATION="/share/nextcloud"
|
ARG CONFIGLOCATION="/share/nextcloud"
|
||||||
# hadolint ignore=SC2015,SC2086
|
# hadolint ignore=SC2015,SC2086
|
||||||
@@ -129,7 +128,11 @@ RUN \
|
|||||||
# Correct nginx files
|
# Correct nginx files
|
||||||
sed -i "/Strict-Transport-Security/d" /defaults/nginx/site-confs/default.conf.sample && \
|
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 && \
|
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 #
|
# 5 Labels #
|
||||||
|
|||||||
Reference in New Issue
Block a user