sebastianliebscher107 days ago (edited 86 days ago)👍 2
What does this PR do?
In recent commits, uv was introduced. When installing Python via uv python install it defaults to ~/.local/share/uv/python. Since the user context in the base stage of the Dockerfile is root, the default path resolves to /root/.local/share/uv/python. Unfortunately, this directory is not accessible to non-root users in unprivileged containers, e.g.
What does this PR do?
In recent commits,
uv
was introduced. When installing Python viauv python install
it defaults to~/.local/share/uv/python
. Since the user context in the base stage of the Dockerfile is root, the default path resolves to/root/.local/share/uv/python
. Unfortunately, this directory is not accessible to non-root users in unprivileged containers, e.g.This PR fixes this by explicitly setting the
UV_PYTHON_INSTALL_DIR
variable to/usr/share/uv
which is accessible for non-root users.Fixes #3082
Fixes #3225
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@Narsil