From: Marcel van der Veldt Date: Sat, 17 May 2025 09:37:37 +0000 (+0200) Subject: Fix dockerfile order X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=02a163708c50c2e32cd3e4e43a7e6f739d95ad6f;p=music-assistant-server.git Fix dockerfile order --- diff --git a/Dockerfile b/Dockerfile index f317ae0a..e3e3c91d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,18 +5,18 @@ ARG BASE_IMAGE_VERSION=latest FROM ghcr.io/music-assistant/base:$BASE_IMAGE_VERSION AS builder +ADD dist dist +COPY requirements_all.txt . + +# ensure UV is installed +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ # create venv which will be copied to the final image ENV VIRTUAL_ENV=/app/venv RUN uv venv $VIRTUAL_ENV -ADD dist dist -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