diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile new file mode 100644 index 0000000..1d305a7 --- /dev/null +++ b/nextcloud/Dockerfile @@ -0,0 +1,10 @@ +ARG NC_MAIN_VERSION +FROM nextcloud:$NC_MAIN_VERSION-fpm + +RUN apt-get update && apt-get install -y --no-install-recommends \ + imagemagick \ + smbclient \ + default-jre-headless libreoffice \ + ffmpeg \ + ocrmypdf tesseract-ocr-deu \ + && rm -rf /var/lib/apt/lists/* diff --git a/nextcloud/docker-compose.yaml b/nextcloud/docker-compose.yaml index 2c3a037..d890e32 100644 --- a/nextcloud/docker-compose.yaml +++ b/nextcloud/docker-compose.yaml @@ -27,7 +27,11 @@ services: app: - image: nextcloud:${NC_MAIN_VERSION}-fpm + image: nextcloud:${NC_MAIN_VERSION}-fpm-own + build: + context: ./ + args: + - NC_MAIN_VERSION=${NC_MAIN_VERSION} volumes: - ${VOLUMES_PATH}/nextcloud_html:/var/www/html - ${VOLUMES_PATH}/nextcloud_data:/var/www/html/data @@ -50,7 +54,11 @@ services: cron: - image: nextcloud:${NC_MAIN_VERSION} + image: nextcloud:${NC_MAIN_VERSION}-fpm-own + build: + context: ./ + args: + - NC_MAIN_VERSION=${NC_MAIN_VERSION} restart: unless-stopped networks: - nextcloud