Update Dockerfile

This commit is contained in:
Alexandre
2021-02-13 08:53:24 +01:00
committed by GitHub
parent 1432207ce2
commit a7b657634d

View File

@@ -2,6 +2,9 @@ ARG BUILD_FROM
ARG BUILD_VERSION
FROM ${BUILD_FROM}${BUILD_VERSION}
# Copy root filesystem
COPY rootfs /
RUN \
# Install bashio
apt-get update \
@@ -32,11 +35,10 @@ RUN \
# Remove fixed folders, allows connection to webUI
&& sed '11,13d' /defaults/qBittorrent.conf \
&& echo 'WebUI\HostHeaderValidation=false' >> /defaults/qBittorrent.conf \
&& echo 'WebUI\LocalHostAuth=false' >> /defaults/qBittorrent.conf
&& echo 'WebUI\LocalHostAuth=false' >> /defaults/qBittorrent.conf \
# use /data instead of /config for hass.io environment
# && files=$(grep -rls '/config' /) && echo $files | xargs sed -i "s=/config=/data=g" \
# Copy root filesystem
COPY rootfs /
&& grep -rl '/config' /etc/cont-init.d/* | xargs sed -i "" 's=/config=/data=g' \
&& grep -rl '/config' /etc/system.d/* | xargs sed -i "" 's=/config=/data=g' \
&& grep -rl '/config' /defaults/* | xargs sed -i "" 's=/config=/data=g'
VOLUME [ "/data" ]