Spaces:
Sleeping
Sleeping
| # Use official Python image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /code | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy everything | |
| COPY . . | |
| # Expose port (HF Spaces expects 7860) | |
| EXPOSE 7860 | |
| # Run the FastAPI app with uvicorn (main.py is inside /app) | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |