Skip to content

Commit

Permalink
finalize changes to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Sep 27, 2024
1 parent f1c5590 commit 4a636ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 27 deletions.
13 changes: 5 additions & 8 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
19 changes: 0 additions & 19 deletions docker-compose.example.yml

This file was deleted.

0 comments on commit 4a636ae

Please sign in to comment.