Spaces:
Sleeping
Sleeping
| # --- Backend (Flask) --- | |
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Copy backend files | |
| COPY app.py requirements.txt README.md ./ | |
| COPY models/ ./models/ | |
| # Copy static assets (brain examples, etc.) if present | |
| COPY static/ ./static/ | |
| # Install Python deps | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| ENV PORT=7860 | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |