From 591ae615e49031271341f467a05207c7d530133b Mon Sep 17 00:00:00 2001 From: Alexei Date: Wed, 2 Aug 2023 13:37:15 -0400 Subject: [PATCH] Work around pip permission errors --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index c55e663..f9ce831 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,7 @@ else \ fi USER $UNAME + ENV USER=$UNAME ENV HOME=/home/$USER ENV OUTPATH=$HOME/out/ @@ -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