Skip to content

Commit

Permalink
Feat: pre-install all requirements in the docker image
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marcelveldt committed Nov 3, 2024
1 parent 5ab2d36 commit 7c69c66
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ FROM ghcr.io/music-assistant/base:$BASE_IMAGE_VERSION
ARG MASS_VERSION
ARG TARGETPLATFORM
ADD dist dist

# pre-install ALL requirements
# comes at a cost of a slightly larger image size but is faster to start
# and has less dependencies to install at runtime
COPY requirements_all.txt .
RUN uv pip install \
--no-cache \
--find-links "https://wheels.home-assistant.io/musllinux/" \
-r requirements_all.txt

# Install Music Assistant from prebuilt wheel
RUN uv pip install \
--no-cache \
Expand Down

0 comments on commit 7c69c66

Please sign in to comment.