fix: add cache mounts for uv to prevent Python installation in image#74
fix: add cache mounts for uv to prevent Python installation in image#74Mohammed Naser (mnaser) merged 1 commit intomainfrom
Conversation
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>
|
/cherry-pick stable/2025.2 stable/2025.1 stable/2024.2 stable/2024.1 stable/2023.2 stable/2023.1 stable/zed |
|
Mohammed Naser (@mnaser): once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
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. |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser): new pull request created: #75 DetailsIn response to this:
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. |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
|
Mohammed Naser (@mnaser) Digest: |
Summary
uv/uvx downloads and installs Python to
~/.local/share/uv/pythonwhen 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 environmentsThis prevents these files from being included in the final image layer.
🤖 Generated with Claude Code