Chore: move uv out of base image
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 16 Jan 2025 22:40:01 +0000 (23:40 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 16 Jan 2025 22:40:01 +0000 (23:40 +0100)
Dockerfile
Dockerfile.base

index 89d66a042342e3821d7d4dac77bcac1466f23451..f317ae0a677e476826d4440de37a30e452bfefea 100644 (file)
@@ -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
index c740d47d3bcf41a60a24bfb6af07b0a7abe2e70d..103d6ef8c55cd9733a2a806a3d8ff2d149c48eac 100644 (file)
@@ -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"