Spaces:
Running
Running
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System deps for opencv-headless | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libglib2.0-0 libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Collect static files | |
| RUN python manage.py collectstatic --noinput | |
| EXPOSE 8000 | |
| CMD ["gunicorn", "core.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2", "--timeout", "120"] | |