Skip to content

Commit b2a9a50

Browse files
committed
fix: Install debugpy in container instead of adding it
Running `uv add debugpy` in the container modifies pyproject.toml and uv.lock so `git describe` reports local changes in the repo and appends a `dev0+g<commit>.d<date>` suffix to the version used for the blueapi in the container Using `uv pip install debugpy` makes it available in the environment without modifying any tracked files. This has to be run after the `uv sync` to stop it being removed again.
1 parent dd3f40d commit b2a9a50

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
77
graphviz \
88
&& apt-get dist-clean
99

10-
# Install helm for the dev container. This is the recommended
10+
# Install helm for the dev container. This is the recommended
1111
# approach per the docs: https://helm.sh/docs/intro/install
1212
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3; \
1313
chmod 700 get_helm.sh; \
@@ -27,12 +27,12 @@ RUN chmod o+wrX .
2727
# Tell uv sync to install python in a known location so we can copy it out later
2828
ENV UV_PYTHON_INSTALL_DIR=/python
2929

30-
RUN uv add debugpy
31-
3230
# Sync the project without its dev dependencies
3331
RUN --mount=type=cache,target=/root/.cache/uv \
3432
uv sync --locked --no-editable --no-dev --managed-python
3533

34+
RUN uv pip install debugpy
35+
3636
# The runtime stage copies the built venv into a runtime container
3737
FROM ubuntu:resolute AS runtime
3838

0 commit comments

Comments
 (0)