From 5bd94af813cc5c6101a3c4453136c6f5a2ed2b73 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 16 Jan 2025 23:40:01 +0100 Subject: [PATCH] Chore: move uv out of base image --- Dockerfile | 2 ++ Dockerfile.base | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 89d66a04..f317ae0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,8 @@ COPY requirements_all.txt . # pre-install ALL requirements into the venv # comes at a cost of a slightly larger image size but is faster to start # because we do not have to install dependencies at runtime +# ensure UV is installed +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ RUN uv pip install \ --find-links "https://wheels.home-assistant.io/musllinux/" \ -r requirements_all.txt diff --git a/Dockerfile.base b/Dockerfile.base index c740d47d..103d6ef8 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -27,9 +27,6 @@ COPY --from=mwader/static-ffmpeg:7.1 /ffprobe /usr/local/bin/ RUN mkdir -p /usr/local/bin/widevine_cdm COPY widevine_cdm/* /usr/local/bin/widevine_cdm/ -# ensure UV is installed -COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ - # JEMalloc for more efficient memory management ENV LD_PRELOAD="/usr/lib/libjemalloc.so.2" -- 2.34.1