Spaces:
Running
Running
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install uv | |
| RUN pip install uv | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN uv pip install --system -r requirements.txt | |
| # Copy code | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the server | |
| # HF Spaces expect the app to run on port 7860 | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] | |