From: Marcel van der Veldt Date: Thu, 16 Jan 2025 22:40:01 +0000 (+0100) Subject: Chore: move uv out of base image X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=5bd94af813cc5c6101a3c4453136c6f5a2ed2b73;p=music-assistant-server.git Chore: move uv out of base image --- 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"