From 43e70fd03008e361b2cdbfe9de8ea0b506801537 Mon Sep 17 00:00:00 2001 From: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com> Date: Thu, 30 Jul 2026 00:04:16 +0000 Subject: [PATCH] fix(images): bundle uv for backend installs Runtime backend installation creates Python virtual environments with uv, but the final images did not include it. Copy the multi-architecture uv binaries into the shared runtime base and verify them during the image build so minimal L4T images can reinstall backends. Fixes #10720 Assisted-by: Codex:gpt-5 --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ca9b3279..4b3ab8bb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,19 @@ ARG UBUNTU_CODENAME=noble ARG APT_MIRROR="" ARG APT_PORTS_MIRROR="" +FROM ghcr.io/astral-sh/uv:0.8.22 AS uv + FROM ${BASE_IMAGE} AS requirements ARG APT_MIRROR ARG APT_PORTS_MIRROR ENV DEBIAN_FRONTEND=noninteractive +# Installed backends create their virtual environments at runtime, including in +# minimal L4T images where neither system Python nor pip is available. +COPY --from=uv /uv /uvx /usr/local/bin/ +RUN uv --version + # hwdata ships /usr/share/hwdata/pci.ids. Without it, the ghw library we use # for hardware detection cannot resolve PCI vendor IDs and fails to enumerate # GPUs at all, so the image reports "No GPU detected" (see issue #10941).