Skip to content

Commit

Permalink
Chore: move uv out of base image
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jan 16, 2025
1 parent 446bbbd commit 5bd94af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 5bd94af

Please sign in to comment.