Skip to content

M1: Install container Python dependencies from uv.lock in Dockerfile #80

Backlog

Description

@h45sh

Context

Dockerfile:83-89 copies only pyproject.toml and README.md into /app and runs pip install --no-cache-dir .. Because uv.lock is neither copied into the build context nor used during installation, pip resolves unpinned >= dependency bounds from pyproject.toml at build time rather than the lockfile verified by CI (uv lock --check in .github/workflows/ci.yml:41,83).

Proof

Inspected Dockerfile:83-89 at origin/dev@db5fc07:

nl -ba Dockerfile | sed -n '82,90p'

Output shows COPY pyproject.toml README.md ./ followed by pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir . with no uv.lock or hash-pinned requirements export.

Impact

Affects every container image built from Dockerfile, including official GHCR releases. Published containers can ship different transitive dependency versions than those tested in CI.

Acceptance criteria

  • Copy uv.lock into the Dockerfile build stage and install dependencies from the locked set (via uv sync --frozen --no-dev or uv export --frozen --no-hashes / hash-pinned export)
  • Add a CI check verifying Dockerfile dependency installation stays aligned with uv.lock

Out of scope

Modifying pyproject.toml version bounds or uv.lock itself.

Part of #24


audit:self · run 2026-12-02 · ref origin/dev@db5fc07 · cell signal×supply

Activity

  1. added this to the M1 Truth milestone on Dec 1, 2026
  2. added
    type:task
    area:packaging
    priority:P2
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagingpriority:P2type:task

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions