From 21a4bbfef4195e9a7c387837b5e0322995ce8ff7 Mon Sep 17 00:00:00 2001 From: Daniel Fernandes Date: Tue, 9 Dec 2025 10:18:52 +0000 Subject: [PATCH 1/3] Set /app/.venv permissions --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8b77b3b633..4721e62bc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,7 +61,8 @@ ENV MPLCONFIGDIR=/tmp/matplotlib COPY --from=build /python /python # Copy the environment, but not the source code -COPY --from=build /app/.venv /app/.venv +COPY --chown=1000:1000 --from=build /app/.venv /app/.venv +RUN chmod o+wrX /app/.venv ENV PATH=/app/.venv/bin:$PATH # Add copy of blueapi source to container for debugging From e555d618fecce566b8b9d496984d77c1cf26e231 Mon Sep 17 00:00:00 2001 From: Daniel Fernandes Date: Tue, 9 Dec 2025 11:47:32 +0000 Subject: [PATCH 2/3] Add debugpy step --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4721e62bc4..0f0e886eab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,8 @@ ENV UV_PYTHON_INSTALL_DIR=/python RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --locked --no-editable --no-dev +RUN uv add debugpy + # The runtime stage copies the built venv into a runtime container FROM ubuntu:noble AS runtime From 089c4473128c2f1fe71d19606deff97c5f92beed Mon Sep 17 00:00:00 2001 From: Daniel Fernandes Date: Tue, 9 Dec 2025 13:48:22 +0000 Subject: [PATCH 3/3] Rearrange uv steps of dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0f0e886eab..a98eaf98e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,12 +27,12 @@ RUN chmod o+wrX . # Tell uv sync to install python in a known location so we can copy it out later ENV UV_PYTHON_INSTALL_DIR=/python +RUN uv add debugpy + # Sync the project without its dev dependencies RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --locked --no-editable --no-dev -RUN uv add debugpy - # The runtime stage copies the built venv into a runtime container FROM ubuntu:noble AS runtime