Skip to content

Commit

Permalink
Fix: change location of user pip install (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Jun 13, 2024
2 parents 7b04620 + 8ea19d9 commit 04a0d1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions appcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ WORKDIR /$USER/run
# switch to non-root $USER
USER $USER

# update PATH for local pip installs
ENV PATH "$PATH:/home/$USER/.local/bin"
# update env for local pip installs
# see https://docs.python.org/3/using/cmdline.html#envvar-PYTHONUSERBASE
# since all `pip install` commands are in the context of $USER
# $PYTHONUSERBASE is the location used by default
ENV PATH="$PATH:/$USER/.local/bin" \
PYTHONUSERBASE="/$USER/.local"

# install python dependencies
COPY appcontainer/requirements.txt requirements.txt
Expand Down

0 comments on commit 04a0d1d

Please sign in to comment.