Spaces:
Runtime error
Runtime error
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --default-timeout=100 --retries=5 -r requirements.txt | |
| ENV HF_HOME=/app/.cache | |
| RUN mkdir -p $HF_HOME && chown -R 1000:1000 $HF_HOME | |
| # Copy the app files | |
| COPY . . | |
| # Expose the port | |
| EXPOSE 7860 | |
| # START THE SERVER (This line is critical!) | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |