From f177b0604d80e7d950171b0f0487f46d2fc712e1 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 6 Feb 2021 23:24:51 +0100 Subject: [PATCH] Update Dockerfile --- piwigo/Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/piwigo/Dockerfile b/piwigo/Dockerfile index 048cf0e2c..898e98c6e 100644 --- a/piwigo/Dockerfile +++ b/piwigo/Dockerfile @@ -2,6 +2,9 @@ ARG BUILD_FROM ARG BUILD_VERSION FROM ${BUILD_FROM}${BUILD_VERSION} +# Copy root filesystem +COPY rootfs / + RUN \ # Install bashio apk add --no-cache \ @@ -26,9 +29,9 @@ RUN \ # Allow UID and GID setting && 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 - -# Copy root filesystem -COPY rootfs / + && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \ + # Use data instead of config + && sed -i 's/config/data/g' /defaults/default \ + && sed -i 's/config/data/g' /etc/cont-init.d/40-install VOLUME [ "/data" ]