diff --git a/Dockerfile b/Dockerfile index e6fad061..bfab4bd0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,13 +20,11 @@ RUN apk --no-cache add ${PACKAGES} && \ WORKDIR /algo -# Copy dependency files first for better layer caching -COPY pyproject.toml uv.lock ./ - # Copy uv binary from official image (using latest tag for automatic updates) COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv -# Install Python dependencies +# Copy dependency files and install in single layer for better optimization +COPY pyproject.toml uv.lock ./ RUN uv sync --frozen --no-dev # Copy application code diff --git a/algo b/algo index b573ded0..d181387f 100755 --- a/algo +++ b/algo @@ -131,6 +131,8 @@ if ! command -v uv &> /dev/null; then fi # Reload PATH to find uv (includes pipx, cargo, and snap paths) + # Note: This PATH change only affects the current shell session. + # Users may need to restart their terminal for subsequent runs. export PATH="$HOME/.local/bin:$HOME/.cargo/bin:/snap/bin:$PATH" # Verify installation worked