Update Dockerfile

This commit is contained in:
Alexandre
2021-12-05 16:12:06 +01:00
committed by GitHub
parent 9cf30c5a8a
commit e22f52faeb

View File

@@ -27,7 +27,13 @@ RUN \
# Allow UID and GID setting
RUN sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
# Allow custom config folder
&& grep -rl '/config' /defaults/ | xargs sed -i 's|/config|/config/webtop|g' \
&& grep -rl '/config' /etc/cont-init.d/ | xargs sed -i 's|/config|/data/webtop|g' \
&& grep -rl '/config' /etc/logrotate.d/ | xargs sed -i 's|/config|/data/webtop|g' \
&& grep -rl '/config' /etc/services.d/ | xargs sed -i 's|/config|/data/webtop|g' || true
# copy local files
COPY root/ /