mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-16 12:29:10 +02:00
Update Dockerfile
This commit is contained in:
@@ -7,18 +7,6 @@ ENV PACKAGES=""
|
|||||||
# Set shell
|
# Set shell
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
|
|
||||||
################
|
|
||||||
# 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) && \
|
|
||||||
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 && \
|
|
||||||
/automatic_packages.sh && \
|
|
||||||
rm /automatic_packages.sh || true
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# Modify Image #
|
# Modify Image #
|
||||||
################
|
################
|
||||||
@@ -33,6 +21,19 @@ RUN \
|
|||||||
&& 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
|
||||||
|
|
||||||
|
################
|
||||||
|
# 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) && \
|
||||||
|
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 && \
|
||||||
|
/automatic_packages.sh && \
|
||||||
|
rm /automatic_packages.sh || true
|
||||||
|
|
||||||
### LABELS
|
### LABELS
|
||||||
ARG BUILD_ARCH
|
ARG BUILD_ARCH
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
|
|||||||
Reference in New Issue
Block a user