From: Marcel van der Veldt Date: Thu, 26 Sep 2024 22:04:38 +0000 (+0200) Subject: use venv for python X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=1aae0469d072a53f6c986f4be22aa61d5bf3e675;p=music-assistant-server.git use venv for python --- diff --git a/Dockerfile.base b/Dockerfile.base index 4f8e698b..673ced8c 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -35,7 +35,10 @@ RUN pip install --upgrade pip \ # Configure runtime environmental variables ENV LD_PRELOAD="/usr/lib/libjemalloc.so.2" -ENV UV_SYSTEM_PYTHON="1" + +ENV VIRTUAL_ENV=/opt/venv +RUN python3 -m venv $VIRTUAL_ENV +ENV PATH="$VIRTUAL_ENV/bin:$PATH" LABEL \ org.opencontainers.image.title="Music Assistant Base Image" \