From: Marcel van der Veldt Date: Sun, 29 Sep 2024 23:09:50 +0000 (+0200) Subject: some more changes to base docker X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=31dfaf9c3a97af7b2318a907a917bea3428f66f8;p=music-assistant-server.git some more changes to base docker --- diff --git a/Dockerfile.base b/Dockerfile.base index 66509166..734367a0 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -29,14 +29,6 @@ RUN set -x \ RUN mkdir -p /usr/local/bin/widevine_cdm COPY widevine_cdm/* /usr/local/bin/widevine_cdm/ -# we need to set (very permissive) permissions to the workdir -# and /tmp to allow running the container as non-root -# NOTE that home assistant add-ons always run as root (and use apparmor) -# so we can't specify a user here -RUN chmod -R 775 /tmp \ - && mkdir /app \ - && chgrp -R /app /tmp - WORKDIR /app # Configure runtime environmental variables @@ -49,6 +41,13 @@ RUN python3 -m venv $VIRTUAL_ENV && \ pip install --upgrade pip \ && pip install uv==0.4.17 +# we need to set (very permissive) permissions to the workdir +# and /tmp to allow running the container as non-root +# NOTE that home assistant add-ons always run as root (and use apparmor) +# so we can't specify a user here +RUN chmod -R 777 /app \ + && chmod -R 777 /tmp + ENV PATH="$VIRTUAL_ENV/bin:$PATH" WORKDIR $VIRTUAL_ENV