From 4b2f2d3440db9c4c45a7e99e9c0d20c01901a8ce Mon Sep 17 00:00:00 2001 From: Aaron Riedener Date: Sat, 6 Apr 2024 18:17:03 +0200 Subject: [PATCH] Update Dockerfile and add Nginx config for static file management --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f195304..4456128 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,12 +41,11 @@ RUN tar -xzf fop-2.9-bin.tar.gz -C /usr/bin RUN rm fop-2.9-bin.tar.gz RUN chmod 755 /usr/bin/fop-2.9/fop/fop -# Set JAVA_HOME environment variable ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64 ENV DJANGO_SETTINGS_MODULE=settings.production_docker_postgres_settings # Collect static files -RUN python manage.py collectstatic --no-input +RUN python manage.py collectstatic --no-input --settings=settings.production_docker_postgres_settings # Copy the Nginx configuration file COPY nginx.conf /etc/nginx/sites-enabled/default