Skip to content

Commit

Permalink
Add DJANGO_MODULES_SETTINGS env var to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ldamasio committed Feb 18, 2024
1 parent 9acd36d commit 19c9acb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backends/monolith/docker/Dockerfile_django
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ FROM python:3.10-slim-buster
RUN apt-get update && apt-get install -y gcc
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV DJANGO_MODULES_SETTINGS=backend.settings
WORKDIR /app
COPY ../requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY . /app/
EXPOSE 8080
EXPOSE 8000
CMD gunicorn -b 0.0.0.0:8000 --worker-class=gevent --worker-connections=1000 --workers=5 backend.wsgi

0 comments on commit 19c9acb

Please sign in to comment.