From 46b22feeb736a03b35700ca92246be62065afa19 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 23 Sep 2021 21:08:11 +0200 Subject: [PATCH] Add elasticsearch --- nextcloud/Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 964df792c..7e5a8facb 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -4,6 +4,10 @@ ARG BUILD_UPSTREAM="22.1.1" FROM ${BUILD_FROM} +#Install elasticsearch +FROM elasticsearch +RUN bin/elasticsearch-plugin install --batch ingest-attachment + ENV NEXTCLOUD_PATH="/data/config/www/nextcloud" # Added repo to solve issues with some systems that cause error code 1 when fetching apk @@ -29,10 +33,10 @@ RUN \ && rm -fr /tmp/bashio.tar.gz \ \ #gclib compatibility - && apk add --no-cache gcompat@community - -# modify/copy files -RUN sed -i "s|data|share/nextcloud|g" /etc/cont-init.d/* \ + && apk add --no-cache gcompat@community \ + \ + # modify/copy files + && 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/*