Skip to content

Commit 92f6069

Browse files
hlukclaude
andcommitted
Use uv sync in Dockerfile to pin dependencies to lockfile
Replace "uv build --wheel && pip install" with "uv sync --frozen --no-dev --no-editable" so the container installs exact versions from uv.lock instead of resolving from PyPI at build time. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9c4a164 commit 92f6069

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ RUN set -exo pipefail \
1717
python3 \
1818
&& dnf --installroot=/mnt/rootfs clean all \
1919
# Install uv
20-
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
21-
&& python3 -m venv /venv
20+
&& curl -LsSf https://astral.sh/uv/install.sh | sh
2221

2322
ENV \
2423
PIP_DEFAULT_TIMEOUT=100 \
@@ -47,12 +46,8 @@ ARG COMMIT_TIMESTAMP
4746
# hadolint ignore=SC1091
4847
RUN set -ex \
4948
&& export PATH=/root/.cargo/bin:"$PATH" \
50-
&& . /venv/bin/activate \
5149
&& uv version "2.3.0.dev$COMMIT_TIMESTAMP+git.$SHORT_COMMIT" \
52-
&& uv build --wheel \
53-
&& version=$(uv version --short) \
54-
&& pip install --no-cache-dir dist/greenwave-"$version"-py3*.whl \
55-
&& deactivate \
50+
&& UV_PROJECT_ENVIRONMENT=/venv uv sync --frozen --no-dev --no-editable \
5651
&& mv /venv /mnt/rootfs \
5752
&& mkdir -p /mnt/rootfs/src/docker \
5853
&& cp -v docker/docker-entrypoint.sh /mnt/rootfs/src/docker \

0 commit comments

Comments
 (0)