Skip to content

Commit cfb95f3

Browse files
author
Mark Saroufim
committed
Fix uv not found: install pip and uv as root
ensurepip and pip install were running as the runner user, placing uv in ~/.local/bin which sudo cannot find. Use sudo so uv installs to /usr/local/bin.
1 parent 796408d commit cfb95f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker/helion.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ RUN sudo ln -sf /usr/bin/python3.13 /usr/local/bin/python3 \
3535
&& sudo ln -sf /usr/bin/python3.13 /usr/local/bin/python
3636

3737
# Install pip and uv
38-
RUN python3 -m ensurepip --upgrade \
39-
&& python3 -m pip install --no-cache-dir uv
38+
RUN sudo python3 -m ensurepip --upgrade \
39+
&& sudo python3 -m pip install --no-cache-dir uv
4040

4141
# Core build tools
4242
RUN sudo uv pip install --system \

0 commit comments

Comments
 (0)