Spaces:
Runtime error
Runtime error
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install UV | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv | |
| # Copy ALL files first (including README.md) | |
| COPY . . | |
| # Install dependencies AFTER copying all files | |
| RUN uv sync --frozen --no-dev | |
| # Expose port (Hugging Face uses port 7860) | |
| EXPOSE 7860 | |
| # Run application | |
| CMD ["uv", "run", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"] | |