From 577c9144acccb74a554381533f441aa57fd24a9c Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Thu, 2 Oct 2025 20:36:45 -0400 Subject: [PATCH] Switch Dockerfile to use uv for dependency management MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9176f9c..54a6863 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,17 +2,21 @@ FROM python:3.13-slim WORKDIR /app -# Install system dependencies +# Install system dependencies and uv RUN apt-get update && apt-get install -y \ build-essential \ 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 pyproject.toml ./ -# Install Python dependencies -RUN pip install --no-cache-dir -e . +# Install Python dependencies using uv +RUN uv pip install --system -e . # Copy application code COPY *.py ./