Skip to content

Commit

Permalink
Add home folder to path for python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Andmedoctopus committed Sep 3, 2024
1 parent 1206412 commit a96ac38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ARG APP_USER=shoobx \
USER_ID=2000 \
GROUP_ID=2000

ENV APP_HOME=/home/$APP_USER
RUN groupadd --gid $GROUP_ID --non-unique $APP_GROUP && \
useradd --no-log-init --uid $USER_ID --non-unique --gid $GROUP_ID --create-home --shell /bin/bash $APP_USER && \
echo Created user $USER_ID and group $GROUP_ID
Expand All @@ -21,6 +22,8 @@ USER $APP_USER
WORKDIR $CODE_FOLDER

COPY --chown=$APP_USER:$APP_GROUP . .
ENV PATH="$PATH:$APP_HOME/.local/bin"

RUN pip install -r requirements.txt


Expand Down

0 comments on commit a96ac38

Please sign in to comment.