Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| # Use root as working directory | |
| WORKDIR / | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all files into the container root | |
| COPY . . | |
| # Run the FastAPI app from root | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |