Update Dockerfile

This commit is contained in:
Alexandre
2021-12-10 07:28:29 +01:00
committed by GitHub
parent c682d5ddd8
commit 81fa4c9c87

View File

@@ -29,11 +29,12 @@ COPY rootfs/ /
ENV PACKAGES=""
# Automatic apps & bashio
RUN $(curl --help &>/dev/null) || (apt-get install -y --no-install-recommends curl || apk add --no-cache curl) && \
RUN $(ls /bin/bash &>/dev/null) || (apt-get install -y --no-install-recommends bash || apk add --no-cache bash) && \
$(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 "$PACKAGES" && \
rm /automatic_packages.sh || true
rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE
### LABELS
ARG BUILD_ARCH