Skip to content

Commit

Permalink
swap venv creation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Sep 27, 2024
1 parent 2be42f2 commit f1c5590
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ RUN pip install --upgrade pip \

# Configure runtime environmental variables
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
adduser --system --uid 1000 --ingroup massgroup mass && \
python3 -m venv $VIRTUAL_ENV && \
chown -R mass:massgroup $VIRTUAL_ENV

USER mass

ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

WORKDIR /home/mass
Expand Down

0 comments on commit f1c5590

Please sign in to comment.