use whitenoise

This commit is contained in:
KenwoodFox
2025-12-03 13:10:39 -05:00
parent 28336aa268
commit c12aedeb20
7 changed files with 267 additions and 247 deletions

View File

@@ -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"]