Spaces:
Sleeping
Sleeping
| FROM python:3.13-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| supervisor \ | |
| nginx \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Copy project files | |
| COPY app ./app | |
| COPY scripts ./scripts | |
| COPY data ./data | |
| COPY models ./models | |
| COPY .env.example ./.env.example | |
| COPY README.md ./README.md | |
| # Copy config files | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
| # HF Spaces requires port 7860 | |
| EXPOSE 7860 | |
| CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] |