mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 00:55:58 +02:00
Update Dockerfile
This commit is contained in:
@@ -1,11 +1,18 @@
|
|||||||
|
###############
|
||||||
|
# Build Image #
|
||||||
|
###############
|
||||||
|
|
||||||
ARG BUILD_FROM
|
ARG BUILD_FROM
|
||||||
ARG BUILD_VERSION
|
ARG BUILD_VERSION
|
||||||
|
ARG BUILD_ARCH
|
||||||
ARG BUILD_UPSTREAM="23.0.0"
|
ARG BUILD_UPSTREAM="23.0.0"
|
||||||
|
|
||||||
FROM ${BUILD_FROM}
|
FROM ${BUILD_FROM}
|
||||||
|
|
||||||
|
################
|
||||||
|
# Modify Image #
|
||||||
|
################
|
||||||
|
|
||||||
ENV NEXTCLOUD_PATH="/data/config/www/nextcloud"
|
ENV NEXTCLOUD_PATH="/data/config/www/nextcloud"
|
||||||
ARG BUILD_ARCH
|
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
chmod +x /defaults/nextcloud-perms.sh \
|
chmod +x /defaults/nextcloud-perms.sh \
|
||||||
@@ -19,13 +26,10 @@ RUN \
|
|||||||
# Install apps #
|
# Install apps #
|
||||||
################
|
################
|
||||||
|
|
||||||
# Add rootfs
|
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# Manual apps
|
|
||||||
ENV PACKAGES="curl jq wget gcompat@community"
|
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) && \
|
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 --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 && \
|
||||||
|
|||||||
Reference in New Issue
Block a user