use whitenoise
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -2,10 +2,16 @@ FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install --upgrade gunicorn
|
||||
|
||||
COPY requirements.txt /app
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
RUN pip install --upgrade gunicorn
|
||||
|
||||
COPY . /app
|
||||
|
||||
# Collect static files for WhiteNoise
|
||||
RUN python manage.py collectstatic --noinput
|
||||
|
||||
CMD ["gunicorn", "seduttomachineworks_project.wsgi:application", "--bind", "0.0.0.0:8000"]
|
||||
|
||||
Reference in New Issue
Block a user