Spaces:
Build error
Build error
| # backend_files/Dockerfile | |
| FROM python:3.9-slim | |
| # 1. Set working directory | |
| WORKDIR /app | |
| # 2. Copy application code and model artifact | |
| COPY . . | |
| # 3. Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # 4. Bind Gunicorn to port 7860 (required by HF Spaces) | |
| # -w 4 : 4 worker processes | |
| # -b 0.0.0.0:7860 : listen on all interfaces at port 7860 | |
| # app:app : Flask app instance named `app` in app.py | |
| CMD ["python", "backend_files/app.py"] | |