From 62cc08d082e6ab707e7d67c94127a03b0a97fe60 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 4 Aug 2023 19:36:28 +0200 Subject: [PATCH] Update Dockerfile --- webtop_kde/Dockerfile | 43 ------------------------------------------- 1 file changed, 43 deletions(-) diff --git a/webtop_kde/Dockerfile b/webtop_kde/Dockerfile index 1bb1c0d48..5da037fb5 100644 --- a/webtop_kde/Dockerfile +++ b/webtop_kde/Dockerfile @@ -18,49 +18,6 @@ ARG BUILD_FROM ARG BUILD_VERSION FROM ${BUILD_FROM} -################## -# 2 Modify Image # -################## - -################## -# 3 Install apps # -################## - -# Add rootfs -#COPY rootfs/ / - -# Corrects permissions for s6 v3 -RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ - if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi - -# Modules -ARG MODULES="" - -# Automatic modules download -RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash) >/dev/null; fi \ - && if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \ - && apt-get update && apt-get install -yqq --no-install-recommends ca-certificates || apk add --no-cache ca-certificates >/dev/null || true \ - && mkdir -p /etc/cont-init.d \ - && for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \ - && chmod -R 755 /etc/cont-init.d - -# Manual apps -ENV PACKAGES="" - -# Automatic apps & bashio -# hadolint ignore=SC2015 -RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash) >/dev/null; fi \ - && if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \ - && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \ - && chmod 777 /automatic_packages.sh \ - && eval /./automatic_packages.sh "${PACKAGES:-}" \ - && rm /automatic_packages.sh - -################ -# 4 Entrypoint # -################ - ############ # 5 Labels # ############