use venv for python
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 26 Sep 2024 22:04:38 +0000 (00:04 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 26 Sep 2024 22:04:38 +0000 (00:04 +0200)
Dockerfile.base

index 4f8e698b1c08f924361e32350b5dbe2dee67d500..673ced8c198e10b8a4d19efa0ac4afef6df8f4c1 100644 (file)
@@ -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" \