Skip to content

Commit

Permalink
Update Dockerfile and add Nginx config for static file management
Browse files Browse the repository at this point in the history
  • Loading branch information
scaphilo committed Apr 6, 2024
1 parent 484a6a5 commit 4b2f2d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b2f2d3

Please sign in to comment.