Switch Dockerfile to use uv for dependency management

- Install uv via official installer script
- Replace pip with uv pip install --system
- Add uv to PATH for container usage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-02 20:36:45 -04:00
parent 2b2891bd79
commit 577c9144ac

View File

@@ -2,17 +2,21 @@ FROM python:3.13-slim
WORKDIR /app WORKDIR /app
# Install system dependencies # Install system dependencies and uv
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
build-essential \ build-essential \
curl \ curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/* \
&& curl -LsSf https://astral.sh/uv/install.sh | sh
# Add uv to PATH
ENV PATH="/root/.local/bin:$PATH"
# Copy dependency files # Copy dependency files
COPY pyproject.toml ./ COPY pyproject.toml ./
# Install Python dependencies # Install Python dependencies using uv
RUN pip install --no-cache-dir -e . RUN uv pip install --system -e .
# Copy application code # Copy application code
COPY *.py ./ COPY *.py ./