Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /code | |
| # Install dependencies | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy templates and source code | |
| COPY . /code | |
| # Hugging Face runs on port 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |