add mounts

This commit is contained in:
Alexandre
2021-12-04 16:02:06 +01:00
parent 968facfb39
commit e57a3e2d89
8 changed files with 231 additions and 5 deletions

View File

@@ -30,13 +30,14 @@ RUN \
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr \
/tmp/* \
\
/tmp/*
RUN \
###############
# Adapt image #
###############
# Allow UID and GID setting
&& sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
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 \
\
@@ -48,7 +49,10 @@ RUN \
# Correct sync folder
&& grep -rl "/sync/" /etc/cont-init.d | xargs sed -i 's|/sync/|/share/resiliosync|g' || true \
&& grep -rl " /sync" /etc/cont-init.d | xargs sed -i 's| /sync| /share/resiliosync|g' || true \
&& sed -i 's=/sync/=/share/resiliosync/=g' /defaults || true
&& sed -i 's=/sync/=/share/resiliosync/=g' /defaults
# Copy root filesystem
COPY rootfs /
VOLUME [ "/data" ]