Skip to content

Commit

Permalink
some more changes to base docker
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Sep 29, 2024
1 parent a538174 commit 31dfaf9
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 31dfaf9

Please sign in to comment.