Skip to content

Conversation

@mnaser
Copy link
Member

@mnaser mnaser commented Jan 25, 2026

Summary

uv/uvx downloads and installs Python to ~/.local/share/uv/python when running bindep via uvx. This was leaving Python 3.14 files in the final image.

Add cache mounts for both:

  • /root/.cache/uv - package cache
  • /root/.local/share/uv - Python installations and tool environments

This prevents these files from being included in the final image layer.

🤖 Generated with Claude Code

uv/uvx downloads and installs Python to ~/.local/share/uv/python when
running bindep. Add cache mounts for both the uv cache and data directories
to prevent these files from being included in the final image.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
@mnaser
Copy link
Member Author

mnaser commented Jan 25, 2026

/cherry-pick stable/2025.2 stable/2025.1 stable/2024.2 stable/2024.1 stable/2023.2 stable/2023.1 stable/zed

@vexxhost-bot
Copy link

@mnaser: once the present PR merges, I will cherry-pick it on top of stable/2025.2 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick stable/2025.2 stable/2025.1 stable/2024.2 stable/2024.1 stable/2023.2 stable/2023.1 stable/zed

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@mnaser mnaser enabled auto-merge (squash) January 25, 2026 18:10
@mnaser mnaser disabled auto-merge January 25, 2026 18:10
@mnaser mnaser merged commit 7b9d019 into main Jan 25, 2026
9 checks passed
@mnaser mnaser deleted the fix/uv-cache-mounts branch January 25, 2026 18:10
@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-debian:main
ghcr.io/vexxhost/python-base-debian:latest
ghcr.io/vexxhost/python-base-debian:7b9d019

Digest: ghcr.io/vexxhost/python-base-debian@sha256:71fa2e669f5092e828e72a5557fea46311cfba8b8a32ddc7e22c24d8c0aac302

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:main
ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:latest
ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:7b9d019

Digest: ghcr.io/vexxhost/python-base-ubuntu-cloud-archive@sha256:920ed53bd8ebc59c0924d91cf3d0482ea783d7a4a5aa69d3759c3e4bdd59d96c

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base:main
ghcr.io/vexxhost/python-base:latest
ghcr.io/vexxhost/python-base:7b9d019

Digest: ghcr.io/vexxhost/python-base@sha256:1d9e4a877e160a29ce747169fa923f8e777769efb4168c2e1549f23494d13a76

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-ubuntu:main
ghcr.io/vexxhost/python-base-ubuntu:latest
ghcr.io/vexxhost/python-base-ubuntu:7b9d019

Digest: ghcr.io/vexxhost/python-base-ubuntu@sha256:1bee051659503e6277ead8e46a8fde3151f2feded64fcd034943d506d34e9f57

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-rockylinux:main
ghcr.io/vexxhost/python-base-rockylinux:latest
ghcr.io/vexxhost/python-base-rockylinux:7b9d019

Digest: ghcr.io/vexxhost/python-base-rockylinux@sha256:9732a4b765666d4d42c9e4fe48f48dd949a8d500b50df708a7602bd354e8ecb2

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-almalinux:main
ghcr.io/vexxhost/python-base-almalinux:latest
ghcr.io/vexxhost/python-base-almalinux:7b9d019

Digest: ghcr.io/vexxhost/python-base-almalinux@sha256:d22e2c5e6928d07e57a95db278533c1e01f59c6bac00ff839497176eb870916f

@vexxhost-bot
Copy link

@mnaser: new pull request created: #75

Details

In response to this:

/cherry-pick stable/2025.2 stable/2025.1 stable/2024.2 stable/2024.1 stable/2023.2 stable/2023.1 stable/zed

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-ubuntu:main
ghcr.io/vexxhost/python-base-ubuntu:latest
ghcr.io/vexxhost/python-base-ubuntu:7b9d019

Digest: ghcr.io/vexxhost/python-base-ubuntu@sha256:4b4fa257d929861c5aa8570e16dca0eb38ad8509b1eb4f654d22c6fff599addc

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base:main
ghcr.io/vexxhost/python-base:latest
ghcr.io/vexxhost/python-base:7b9d019

Digest: ghcr.io/vexxhost/python-base@sha256:41fa8c25f61321fc025c912411115c2efb03d6db8c45f0e217bf0cffbf671fae

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:main
ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:latest
ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:7b9d019

Digest: ghcr.io/vexxhost/python-base-ubuntu-cloud-archive@sha256:603de98e1ae9a2a10d0d24dbeb5e92a3a61667a79b29703e9740685b4bc18fc0

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-rockylinux:main
ghcr.io/vexxhost/python-base-rockylinux:latest
ghcr.io/vexxhost/python-base-rockylinux:7b9d019

Digest: ghcr.io/vexxhost/python-base-rockylinux@sha256:fbab4d3ef9f0f7797efef884fe752655ac38ff667ebccc8a7fffaaf83b5bdf04

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-almalinux:main
ghcr.io/vexxhost/python-base-almalinux:latest
ghcr.io/vexxhost/python-base-almalinux:7b9d019

Digest: ghcr.io/vexxhost/python-base-almalinux@sha256:66d9fdb6f64d07062e0717204e66e07a1d1bf9bad7d36642c891dc3c242a2753

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-debian:main
ghcr.io/vexxhost/python-base-debian:latest
ghcr.io/vexxhost/python-base-debian:7b9d019

Digest: ghcr.io/vexxhost/python-base-debian@sha256:bc04c624da6c79b64d5b2284166d83bfb6aa78e210273a9aa7776a7e444da7fc

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-rockylinux:main
ghcr.io/vexxhost/python-base-rockylinux:latest
ghcr.io/vexxhost/python-base-rockylinux:7b9d019

Digest: ghcr.io/vexxhost/python-base-rockylinux@sha256:8ae6e1522e9d4d25c05ae4971fc9cbdf7481af8269e2a18e3b10b040f8ce44d8

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-ubuntu:main
ghcr.io/vexxhost/python-base-ubuntu:latest
ghcr.io/vexxhost/python-base-ubuntu:7b9d019

Digest: ghcr.io/vexxhost/python-base-ubuntu@sha256:69b3a648298adcad3cfb97c3bfd79d4ce9ea2af6d8b937a7d2d49e7e73126e54

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-debian:main
ghcr.io/vexxhost/python-base-debian:latest
ghcr.io/vexxhost/python-base-debian:7b9d019

Digest: ghcr.io/vexxhost/python-base-debian@sha256:314160029e064e553996b6e06eb648643bf981d58e665ec26d8b6f104208dad7

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:main
ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:latest
ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:7b9d019

Digest: ghcr.io/vexxhost/python-base-ubuntu-cloud-archive@sha256:a5730db8b509f9a51f10479ba723824e4b66da6c678727e8cd873c14a2faa8be

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-almalinux:main
ghcr.io/vexxhost/python-base-almalinux:latest
ghcr.io/vexxhost/python-base-almalinux:7b9d019

Digest: ghcr.io/vexxhost/python-base-almalinux@sha256:6f78fb51a03ef410a16b4003304ca79b38bfd44947fe34cc2b4e3fe088a68aab

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:main
ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:latest
ghcr.io/vexxhost/python-base-ubuntu-cloud-archive:7b9d019

Digest: ghcr.io/vexxhost/python-base-ubuntu-cloud-archive@sha256:a81b1ac9fb8760c8f5301898c4a9aa59c5a3590f0cc98070da3ff696b41cf8d5

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-debian:main
ghcr.io/vexxhost/python-base-debian:latest
ghcr.io/vexxhost/python-base-debian:7b9d019

Digest: ghcr.io/vexxhost/python-base-debian@sha256:d658c534242ba236f1d8dbb9a7850a4e81fbeb845da672f4ca3cd39ff682cc41

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-ubuntu:main
ghcr.io/vexxhost/python-base-ubuntu:latest
ghcr.io/vexxhost/python-base-ubuntu:7b9d019

Digest: ghcr.io/vexxhost/python-base-ubuntu@sha256:7faeb7a067328f061800b3056e27a7a6afcae76b21eed5b16ca51f193a10387b

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-almalinux:main
ghcr.io/vexxhost/python-base-almalinux:latest
ghcr.io/vexxhost/python-base-almalinux:7b9d019

Digest: ghcr.io/vexxhost/python-base-almalinux@sha256:fc64c694823274f76c86e0fbad51fb458c351e2ad8c306a50665fde59cd73818

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base-rockylinux:main
ghcr.io/vexxhost/python-base-rockylinux:latest
ghcr.io/vexxhost/python-base-rockylinux:7b9d019

Digest: ghcr.io/vexxhost/python-base-rockylinux@sha256:d7285e86a3c3b98b3099ca202c76e78637c4a5e5b2d394ba336feb339ea63d06

@github-actions
Copy link

@mnaser
This pull request has been included in the following image tags:

ghcr.io/vexxhost/python-base:main
ghcr.io/vexxhost/python-base:latest
ghcr.io/vexxhost/python-base:7b9d019

Digest: ghcr.io/vexxhost/python-base@sha256:941791161f6d9ebd2fc113d66bc31ed72e44b49bbb9ad10af250e165b769da55

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.

2 participants