finalize changes to dockerfile
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 27 Sep 2024 19:52:38 +0000 (21:52 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 27 Sep 2024 19:52:38 +0000 (21:52 +0200)
Dockerfile.base
docker-compose.example.yml [deleted file]

index 03c1ec2ac867d732142d7af679e2e9c245cb2737..3656e85508ddb7c579616ae5e3a6b00f92029285 100644 (file)
@@ -37,16 +37,13 @@ RUN pip install --upgrade pip \
 ENV LD_PRELOAD="/usr/lib/libjemalloc.so.2"
 ENV VIRTUAL_ENV=/opt/venv
 
-# create mass user (PID 1000, GID 1000)
-RUN addgroup --gid 1000 massgroup && \
-    adduser --system --uid 1000 --ingroup massgroup mass && \
-    python3 -m venv $VIRTUAL_ENV && \
-    chown -R mass:massgroup $VIRTUAL_ENV
+# create venv and set some permissions to allow running the container as non-root
+RUN python3 -m venv $VIRTUAL_ENV && \
+    chmod -R 777 $VIRTUAL_ENV && \
+    chmod -R 777 /tmp
 
-USER mass
 ENV PATH="$VIRTUAL_ENV/bin:$PATH"
-
-WORKDIR /home/mass
+WORKDIR $VIRTUAL_ENV
 
 LABEL \
     org.opencontainers.image.title="Music Assistant Base Image" \
diff --git a/docker-compose.example.yml b/docker-compose.example.yml
deleted file mode 100644 (file)
index aee64ab..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-version: "3"
-services:
-  music-assistant-server:
-    image: ghcr.io/music-assistant/server:beta # <<< Desired release version here (change beta to latest once there is a stable release)
-    container_name: music-assistant-server
-    restart: unless-stopped
-    # Network mode must be set to host for MA to work correctly
-    network_mode: host
-    volumes:
-      - ${USERDIR:-$HOME}/docker/music-assistant-server/data:/data/
-    # privileged caps needed to mount smb folders within the container
-    cap_add:
-      - SYS_ADMIN
-      - DAC_READ_SEARCH
-    privileged: true
-    environment:
-      # Provide logging level as environment variable.
-      # default=info, possible=(critical, error, warning, info, debug, verbose)
-      - LOG_LEVEL=info