Skip to content

Commit

Permalink
Add more debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Aug 9, 2023
1 parent f376968 commit f50ab38
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 @@ -16,13 +16,15 @@ RUN if [ $(getent group $GID) ]; then \
old_group=$(getent group $GID | cut -d: -f1); \
groupmod -n $UNAME $old_group; \
else \
echo "Creating group $UNAME ($GID)"; \
groupadd -g $GID $UNAME; \
fi

RUN if [ $(getent passwd $UID) ]; then \
old_uname=$(getent passwd $UID | cut -d: -f1); \
usermod -l $UNAME -g $GID -m -d /home/$UNAME -s /bin/bash $old_uname; \
else \
echo "Creating user $UNAME ($UID:$GID)"; \
useradd -ms /bin/bash -u $UID -g $GID $UNAME; \
fi

Expand All @@ -34,6 +36,7 @@ ENV PBPATH=$HOME/privacybadger/
ENV EXTENSIONS=$HOME/parallel-extensions/

WORKDIR $HOME
RUN ls -Altr .

COPY requirements.txt .
RUN pip3 install --user -r requirements.txt
Expand Down

0 comments on commit f50ab38

Please sign in to comment.