You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
M1: Install container Python dependencies from uv.lock in Dockerfile #80
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.
Activity