Skip to content

Commit 7811858

Browse files
nanotaboadaCopilot
andcommitted
fix(docker): pin uv version and exclude dev deps from production wheel build
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 49064ef commit 7811858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ RUN apt-get update && \
1717
# uv export reads uv.lock to produce a pinned, reproducible dependency list;
1818
# pip wheel compiles each resolved package into a .whl file for offline installation
1919
COPY --chown=root:root --chmod=644 pyproject.toml uv.lock ./
20-
RUN pip install --no-cache-dir uv --quiet && \
21-
uv export --no-hashes | pip wheel --no-cache-dir --wheel-dir=/app/wheelhouse -r /dev/stdin
20+
RUN pip install --no-cache-dir uv==0.10.1 --quiet && \
21+
uv export --frozen --no-dev --no-hashes | pip wheel --no-cache-dir --wheel-dir=/app/wheelhouse -r /dev/stdin
2222

2323
# ------------------------------------------------------------------------------
2424
# Stage 2: Runtime

0 commit comments

Comments
 (0)