Skip to content

Preinstall Python 3.11-3.15 into base Docker image - #4393

Merged
un-def merged 1 commit into
masterfrom
pr_docker_base_uv_python_versions
Oct 21, 2026
Merged

un-def merged 1 commit into
masterfrom
pr_docker_base_uv_python_versions

Conversation

@un-def

@un-def un-def commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Pin uv to 0.13.3. uv embeds the list of Python builds it can install, so previously the patch versions available to runs depended on the latest uv at image build time. With a pinned uv, rebuilding the image yields the same Python builds.

Install Python 3.11-3.15 into /opt/uv/python instead of a single default version into root's home. Unlike /root, the shared directory is readable by non-root users. Callers opt in by setting UV_PYTHON_INSTALL_DIR; the job configurator will be updated separately once the image is tested.

Drop --default: the python/python3 symlinks it created in ~/.local/bin were never on PATH.

Pin uv to 0.13.3. uv embeds the list of Python builds it can install,
so previously the patch versions available to runs depended on the
latest uv at image build time. With a pinned uv, rebuilding the image
yields the same Python builds.

Install Python 3.11-3.15 into /opt/uv/python instead of a single
default version into root's home. Unlike /root, the shared directory is
readable by non-root users. Callers opt in by setting
UV_PYTHON_INSTALL_DIR; the job configurator will be updated separately
once the image is tested.

Drop --default: the python/python3 symlinks it created in
~/.local/bin were never on PATH.
@un-def
un-def merged commit edab7f4 into master Oct 21, 2026
29 checks passed
@un-def
un-def deleted the pr_docker_base_uv_python_versions branch October 21, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant