Spaces:
Build error
Build error
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y git | |
| # install pip dependencies | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| # copy source | |
| COPY app.py . | |
| # expose port | |
| EXPOSE 7860 | |
| # run | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |
| COPY checkpoint checkpoint | |