Update Dockerfile

This commit is contained in:
Alexandre
2021-12-08 18:12:01 +01:00
committed by GitHub
parent 738ad5081d
commit f652bf3c53

View File

@@ -10,32 +10,29 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
################ ################
# Install apps # # Install apps #
################ ################
# Copy local files
COPY root/ /
# Automatic apps & bashio
RUN $(curl --help &>/dev/null) && (apt-get install -y --no-install-recommends curl || apk add --no-cache curl) && \ RUN $(curl --help &>/dev/null) && (apt-get install -y --no-install-recommends curl || apk add --no-cache curl) && \
curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/automatic_packages.sh" --output /automatic_packages.sh && \ curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/automatic_packages.sh" --output /automatic_packages.sh && \
chmod 777 /automatic_packages.sh && \ chmod 777 /automatic_packages.sh && \
/automatic_packages.sh && \ /automatic_packages.sh && \
rm /automatic_packages.sh || true rm /automatic_packages.sh || true
################
# Modify Image #
################
RUN \ RUN \
############################# # Allow UID and GID setting
# 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/{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 \
&& sed -i "s|chown abc:abc /config||g" /etc/cont-init.d/10-adduser \ && sed -i "s|chown abc:abc /config||g" /etc/cont-init.d/10-adduser \
\ \
########### # FOLDERS
# FOLDERS #
###########
\
&& sed -i "s|/config|/emby|g" /etc/services.d/emby/run \ && sed -i "s|/config|/emby|g" /etc/services.d/emby/run \
&& sed -i "s|/config|/emby|g" /etc/cont-init.d/30-config && sed -i "s|/config|/emby|g" /etc/cont-init.d/30-config
# copy local files
COPY root/ /
### LABELS ### LABELS
ARG BUILD_ARCH ARG BUILD_ARCH
ARG BUILD_DATE ARG BUILD_DATE