last resort
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 27 Sep 2024 12:51:29 +0000 (14:51 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 27 Sep 2024 12:51:29 +0000 (14:51 +0200)
Dockerfile.base

index dc588981109ab8cbc02511dda2cefba2405207a0..aee3cac5c08d50f350a5fd7a3f9908f0b582e245 100644 (file)
@@ -34,12 +34,18 @@ RUN pip install --upgrade pip \
     && pip install uv==0.2.27
 
 # Configure runtime environmental variables
+ENV USER="mass"
+ENV GROUP="$USER"
+ENV PUID="${PUID:-1000}"
+ENV PGID="${PGID:-1000}"
+ENV UMASK="${UMASK:-}"
+
 ENV LD_PRELOAD="/usr/lib/libjemalloc.so.2"
 ENV VIRTUAL_ENV=/opt/venv
 RUN python3 -m venv $VIRTUAL_ENV
 ENV PATH="$VIRTUAL_ENV/bin:$PATH"
 WORKDIR /opt/venv
-
+RUN chmod -r 777 $VIRTUAL_ENV
 
 LABEL \
     org.opencontainers.image.title="Music Assistant Base Image" \