Spaces:
Sleeping
Sleeping
File size: 365 Bytes
5205645 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # --- 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"]
|