Skip to content

Commit 38ba72f

Browse files
committed
Fix uv writing in root environment
1 parent a5d96f7 commit 38ba72f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile.dev

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ ENV UV_TOOL_BIN_DIR=/usr/local/bin
1616
# Place executables in the environment at the front of the path
1717
ENV PATH="$FOLDER/.venv/bin:$PATH"
1818

19+
# Fix uv + non-root environment
20+
ENV HOME=/tmp
21+
ENV XDG_DATA_HOME=/tmp/.local/share
22+
ENV XDG_CACHE_HOME=/tmp/.cache
23+
1924
USER root
2025
RUN apt-get update && apt-get install -y nodejs npm \
2126
&& npm install -g nodemon \

0 commit comments

Comments
 (0)