mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
Update Dockerfile
This commit is contained in:
@@ -7,13 +7,13 @@ RUN \
|
|||||||
################
|
################
|
||||||
# Install apps #
|
# Install apps #
|
||||||
################
|
################
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
jq \
|
jq \
|
||||||
cifs-utils \
|
cifs-utils \
|
||||||
keyutils \
|
keyutils \
|
||||||
smbclient \
|
smbclient \
|
||||||
samba \
|
samba \
|
||||||
###################
|
###################
|
||||||
# Install bashio #
|
# Install bashio #
|
||||||
##################
|
##################
|
||||||
@@ -22,18 +22,16 @@ RUN \
|
|||||||
tar -xzf - --strip 1 -C /tmp/bashio \
|
tar -xzf - --strip 1 -C /tmp/bashio \
|
||||||
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
||||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||||
rm -rf /tmp/bashio || true
|
rm -rf /tmp/bashio
|
||||||
|
|
||||||
# Allow UID and GID setting
|
# Allow UID and GID setting
|
||||||
RUN sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
RUN 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/{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 \
|
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
|
||||||
# Allow custom config folder
|
# Allow custom config folder
|
||||||
&& grep -rl '/config' /defaults/ | xargs sed -i 's|/config|/config/webtop|g' \
|
&& sed -i 's|/config|/config/webtop|g' /defaults/* \
|
||||||
&& grep -rl '/config' /etc/cont-init.d/ | xargs sed -i 's|/config|/data/webtop|g' \
|
&& sed -i 's|/config|/data/webtop|g' /etc/cont-init.d/* \
|
||||||
&& grep -rl '/config' /etc/logrotate.d/ | xargs sed -i 's|/config|/data/webtop|g' \
|
&& sed -i 's|/config|/data/webtop|g' /etc/services.d/*/run
|
||||||
&& grep -rl '/config' /etc/services.d/ | xargs sed -i 's|/config|/data/webtop|g'
|
|
||||||
|
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|||||||
Reference in New Issue
Block a user