Spaces:
Sleeping
Sleeping
| # 1. Base image | |
| FROM python:3.10-slim | |
| # 2. Create & switch to /app | |
| WORKDIR /app | |
| # 3. Copy all code & model into the image | |
| COPY . . | |
| # 4. Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 5. Expose the port your app will run on | |
| EXPOSE 7860 | |
| # 6. Launch Uvicorn, pointing at main:app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |