Spaces:
Sleeping
Sleeping
| # Use official Python image | |
| FROM python:3.9 | |
| # Set the working directory | |
| WORKDIR /code | |
| # Copy requirements and install | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the app code | |
| COPY . . | |
| # Start FastAPI on port 7860 (Hugging Face's default port) | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |