From 0f36608a1c71186128d06bcdfaa15632e54e81c1 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Tue, 19 Nov 2024 21:35:18 +0100 Subject: [PATCH] add missing dockerfile --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6b7fb49 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM nextcloud:30 + +ARG APP_NAME=app_template +ENV NEXTCLOUD_UPDATE=1 +ENV NEXTCLOUD_ADMIN_USER=$APP_NAME +ENV NEXTCLOUD_ADMIN_PASSWORD=$APP_NAME +ENV NEXTCLOUD_INIT_HTACCESS=1 +ENV SQLITE_DATABASE=$APP_NAME + +RUN apt-get update && \ + apt-get install -y nodejs npm sqlite3 && \ + rm -f /usr/local/etc/php/conf.d/opcache-recommended.ini && \ + /entrypoint.sh true + +USER www-data + +COPY --chown=www-data:www-data . apps/$APP_NAME +RUN cd apps/repod && make build && cd - && \ + php occ app:enable $APP_NAME && \ + php occ config:system:set debug --value=true + +USER root