From 1aae0469d072a53f6c986f4be22aa61d5bf3e675 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 27 Sep 2024 00:04:38 +0200 Subject: [PATCH] use venv for python --- Dockerfile.base | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile.base b/Dockerfile.base index 4f8e698b1..673ced8c1 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" \