update cleanup code

This commit is contained in:
Alexandre
2021-01-18 15:18:32 +01:00
parent 5a73fc005d
commit 216f61740b
3 changed files with 3 additions and 9 deletions

View File

@@ -21,10 +21,7 @@ RUN apk add --no-cache \
\
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr \
/tmp/* \
/var/{cache,log}/* \
/var/lib/apt/lists/*
&& rm -fr /tmp/bashio.tar.gz
# modify/copy files
RUN sed -i "s|data|share/nextcloud|g" /etc/cont-init.d/* \

View File

@@ -12,7 +12,7 @@ RUN curl -J -L -o /tmp/bashio.tar.gz \
\
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr /tmp/*
&& rm -fr /tmp/bashio.tar.gz
# use /data instead of /config for hass.io environment
RUN sed -i "s|/config|/config/radarr|g" /etc/services.d/radarr/run \

View File

@@ -16,10 +16,7 @@ RUN apk add --no-cache \
\
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr \
/tmp/* \
/var/{cache,log}/* \
/var/lib/apt/lists/*
&& rm -fr /tmp/bashio.tar.gz
# Copy root filesystem
COPY rootfs /