From 9472c7f154c112b90827553be8be389d9948e65d Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Tue, 19 Nov 2024 21:37:53 +0100 Subject: [PATCH] refactor: :art: rework Dockerfile --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index daf860c..8a6887d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ FROM nextcloud:30 +ARG APP_NAME=repod ENV NEXTCLOUD_UPDATE=1 -ENV NEXTCLOUD_ADMIN_USER=repod -ENV NEXTCLOUD_ADMIN_PASSWORD=repod +ENV NEXTCLOUD_ADMIN_USER=$APP_NAME +ENV NEXTCLOUD_ADMIN_PASSWORD=$APP_NAME ENV NEXTCLOUD_INIT_HTACCESS=1 -ENV SQLITE_DATABASE=repod +ENV SQLITE_DATABASE=$APP_NAME RUN apt-get update && \ apt-get install -y nodejs npm sqlite3 && \ @@ -13,10 +14,10 @@ RUN apt-get update && \ USER www-data -COPY --chown=www-data:www-data . apps/repod -RUN cd apps/repod && make build && cd - && \ +COPY --chown=www-data:www-data . apps/$APP_NAME +RUN cd apps/$APP_NAME && make build && cd - && \ php occ app:install gpoddersync && \ - php occ app:enable repod && \ + php occ app:enable $APP_NAME && \ php occ config:system:set debug --value=true USER root