Spaces:
Sleeping
Sleeping
File size: 398 Bytes
226ff5d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM python:3.11-slim
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
WORKDIR /app
# Install dependencies (cached layer — only re-runs when pyproject.toml changes)
COPY pyproject.toml .
RUN uv sync --no-dev --no-install-project
# Copy source
COPY . .
ENV PATH="/app/.venv/bin:$PATH"
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|