Spaces:
Sleeping
Sleeping
| # Use Python image | |
| FROM python:3.11-slim | |
| # Set workdir | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| # Expose the port Hugging Face expects | |
| EXPOSE 7860 | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user . /app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |