From 3212abf6d602dac2eeb64d60ebd82de89d153c46 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Sun, 25 Jan 2026 12:45:35 -0500 Subject: [PATCH] fix: add cache mounts for uv to prevent Python installation in image 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 Signed-off-by: Mohammed Naser --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index a6926af..506f768 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,6 @@ FROM ${FROM} ENV PATH=/var/lib/openstack/bin:$PATH RUN --mount=type=bind,source=bindep.txt,target=/bindep.txt \ --mount=type=bind,from=ghcr.io/vexxhost/build-utils:latest,source=/bin,target=/build \ + --mount=type=cache,target=/root/.cache/uv \ + --mount=type=cache,target=/root/.local/share/uv \ /build/install-bindep-packages