Spaces:
Running
Running
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip3 install -r requirements.txt | |
| COPY . . | |
| # Expose only the primary port for HF Space | |
| EXPOSE 7860 | |
| # Run FastAPI on the primary port | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |