Spaces:
Sleeping
Sleeping
| FROM python:3.13-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| fonts-dejavu-core \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY pyproject.toml ./ | |
| # Use the official uv binary | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uv/bin/uv | |
| ENV PATH="/uv/bin:$PATH" | |
| COPY app/ ./app/ | |
| # Use uv pip to install into the system site-packages (Note: uv pip is a Rust implementation, NOT legacy pip) | |
| RUN uv pip install --system . --no-cache-dir | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] | |