Spaces:
Sleeping
Sleeping
| # Use a slim Python image | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /code | |
| # Copy your requirements and install them | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy your application code | |
| COPY . . | |
| # Expose port 7860 (Hugging Face requirement) | |
| EXPOSE 7860 | |
| # Command to run your FastAPI app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |