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 591ae61
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 @@ -27,6 +27,7 @@ else \
fi

USER $UNAME

ENV USER=$UNAME
ENV HOME=/home/$USER
ENV OUTPATH=$HOME/out/
Expand All @@ -36,7 +37,9 @@ ENV EXTENSIONS=$HOME/parallel-extensions/
WORKDIR $HOME

COPY requirements.txt .
USER root
RUN pip3 install --user -r requirements.txt
USER $UNAME

COPY crawler.py validate.py docker-entry.sh $HOME/
COPY domain-lists $HOME/domain-lists
Expand Down

0 comments on commit 591ae61

Please sign in to comment.