mirror of
https://github.com/mudler/LocalAI.git
synced 2026-07-30 18:09:05 -04:00
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
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user