From 6ed8087eb29a5e166d9d2fdfde35b8cc0e653029 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 2 Oct 2021 20:33:36 +0200 Subject: [PATCH] Update Dockerfile --- nextcloud/Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index c35d6b307..2a46c6fd7 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -9,13 +9,8 @@ ENV NEXTCLOUD_PATH="/data/config/www/nextcloud" # Added repo to solve issues with some systems that cause error code 1 when fetching apk # Add bashio RUN \ - #Avoid issues with sources - echo 'https://dl-3.alpinelinux.org/alpine/latest-stable/main' > /etc/apk/repositories \ - && echo '@testing https://dl-3.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \ - && echo '@community https://dl-3.alpinelinux.org/alpine/latest-stable/community' >> /etc/apk/repositories \ - \ #Install bashio - && apk add --no-cache \ + apk add --no-cache \ curl jq \ && curl -J -L -o /tmp/bashio.tar.gz \ "https://github.com/hassio-addons/bashio/archive/v0.13.1.tar.gz" \ @@ -29,10 +24,11 @@ RUN \ && rm -fr /tmp/bashio.tar.gz \ \ #gclib compatibility - && apk add --no-cache gcompat@community \ - \ + && apk add --no-cache gcompat@community || true + +RUN \ # modify/copy files - && sed -i "s|data|share/nextcloud|g" /etc/cont-init.d/* \ + sed -i "s|data|share/nextcloud|g" /etc/cont-init.d/* \ && sed -i "s|config|data/config|g" /etc/cont-init.d/* \ && sed -i "s|data|share/nextcloud|g" /etc/services.d/nginx/* \ && sed -i "s|config|data/config|g" /etc/services.d/nginx/*