From a9b5dcdc7c45a1bed2eee84849c7f6fd6f29ada8 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 29 Nov 2021 13:53:28 +0100 Subject: [PATCH] Update Dockerfile --- ubooquity/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ubooquity/Dockerfile b/ubooquity/Dockerfile index 811650f45..846ee5c4b 100644 --- a/ubooquity/Dockerfile +++ b/ubooquity/Dockerfile @@ -4,9 +4,6 @@ ARG BUILD_UPSTREAM="2.1.2" FROM ${BUILD_FROM} ARG BASHIO_VERSION=0.13.1 -# Copy root filesystem -COPY rootfs / - # Add bashio RUN apk add --no-cache \ curl \ @@ -23,10 +20,14 @@ RUN apk add --no-cache \ \ && mv /tmp/bashio/lib /usr/lib/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ - && rm -fr /tmp/bashio.tar.gz \ - \ + && rm -fr /tmp/bashio.tar.gz + +# Copy root filesystem +COPY rootfs / + +RUN \ # Set config directory - && sed -i 's|config|config/ubooquity|g' /etc/cont-init.d/10-adduser \ + sed -i 's|config|config/ubooquity|g' /etc/cont-init.d/10-adduser \ && sed -i 's|config|config/ubooquity|g' /etc/cont-init.d/30-config \ && sed -i 's|config|config/ubooquity|g' /etc/services.d/ubooquity/run \ # Allow UID and GID setting