Skip to content

Commit cc55c69

Browse files
fix: Fix scratch permissions (#1298)
Co-authored-by: Daniel Fernandes <danieljosephfernandes@gmail.com>
1 parent 120a709 commit cc55c69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ 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+
3032
# Sync the project without its dev dependencies
3133
RUN --mount=type=cache,target=/root/.cache/uv \
3234
uv sync --locked --no-editable --no-dev
@@ -61,7 +63,8 @@ ENV MPLCONFIGDIR=/tmp/matplotlib
6163
COPY --from=build /python /python
6264

6365
# Copy the environment, but not the source code
64-
COPY --from=build /app/.venv /app/.venv
66+
COPY --chown=1000:1000 --from=build /app/.venv /app/.venv
67+
RUN chmod o+wrX /app/.venv
6568
ENV PATH=/app/.venv/bin:$PATH
6669

6770
# Add copy of blueapi source to container for debugging

0 commit comments

Comments
 (0)