Update Dockerfile

This commit is contained in:
Alexandre
2021-12-10 07:36:35 +01:00
committed by GitHub
parent 294bde2f41
commit 0821c37883

View File

@@ -1,11 +1,18 @@
###############
# Build Image #
###############
ARG BUILD_FROM
ARG BUILD_VERSION
ARG BUILD_ARCH
ARG BUILD_UPSTREAM="23.0.0"
FROM ${BUILD_FROM}
################
# Modify Image #
################
ENV NEXTCLOUD_PATH="/data/config/www/nextcloud"
ARG BUILD_ARCH
RUN \
chmod +x /defaults/nextcloud-perms.sh \
@@ -19,13 +26,10 @@ RUN \
# Install apps #
################
# Add rootfs
COPY root/ /
# Manual apps
ENV PACKAGES="curl jq wget gcompat@community"
# Automatic apps & bashio
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 && \