Spaces:
Runtime error
Runtime error
| # Minimal Dockerfile for HF Spaces - quick startup | |
| FROM python:3.11-slim | |
| # Required for HF Dev Mode | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements/base.txt ./requirements.txt | |
| RUN pip install --no-cache-dir -r ./requirements.txt | |
| # Copy app structure | |
| COPY app ./app | |
| # Set ownership | |
| COPY --chown=user . /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |