refactor: 🎨 rework Dockerfile
All checks were successful
repod / xml (push) Successful in 25s
repod / php (push) Successful in 56s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-11-19 21:37:53 +01:00
parent 193ceeba72
commit 9472c7f154

View File

@ -1,10 +1,11 @@
FROM nextcloud:30 FROM nextcloud:30
ARG APP_NAME=repod
ENV NEXTCLOUD_UPDATE=1 ENV NEXTCLOUD_UPDATE=1
ENV NEXTCLOUD_ADMIN_USER=repod ENV NEXTCLOUD_ADMIN_USER=$APP_NAME
ENV NEXTCLOUD_ADMIN_PASSWORD=repod ENV NEXTCLOUD_ADMIN_PASSWORD=$APP_NAME
ENV NEXTCLOUD_INIT_HTACCESS=1 ENV NEXTCLOUD_INIT_HTACCESS=1
ENV SQLITE_DATABASE=repod ENV SQLITE_DATABASE=$APP_NAME
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y nodejs npm sqlite3 && \ apt-get install -y nodejs npm sqlite3 && \
@ -13,10 +14,10 @@ RUN apt-get update && \
USER www-data USER www-data
COPY --chown=www-data:www-data . apps/repod COPY --chown=www-data:www-data . apps/$APP_NAME
RUN cd apps/repod && make build && cd - && \ RUN cd apps/$APP_NAME && make build && cd - && \
php occ app:install gpoddersync && \ php occ app:install gpoddersync && \
php occ app:enable repod && \ php occ app:enable $APP_NAME && \
php occ config:system:set debug --value=true php occ config:system:set debug --value=true
USER root USER root