| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| ENV HF_HOME=/app/cache | |
| COPY . . | |
| RUN chmod -R 777 /app | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860", "--reload"] | |