Skip to content

Commit

Permalink
Work around pip permission errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Aug 2, 2023
1 parent 087fef8 commit d4a7215
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ else \
fi

USER $UNAME

ENV USER=$UNAME
ENV HOME=/home/$USER
ENV OUTPATH=$HOME/out/
Expand All @@ -35,6 +36,10 @@ ENV EXTENSIONS=$HOME/parallel-extensions/

WORKDIR $HOME

USER root
RUN chown -R $USER:$USER .local
RUN chown -R $USER:$USER .cache
USER $UNAME
COPY requirements.txt .
RUN pip3 install --user -r requirements.txt

Expand Down

0 comments on commit d4a7215

Please sign in to comment.