diff --git a/username-1/Dockerfile b/username-1/Dockerfile index 39a1b68..d4c7158 100644 --- a/username-1/Dockerfile +++ b/username-1/Dockerfile @@ -11,7 +11,6 @@ apt-get clean ARG username=github RUN useradd -u 1000 -ms /bin/bash ${username} RUN echo "%${username} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers -USER ${username} ENV HOME=/home/${username} RUN sudo groupadd -g 127 docker @@ -19,6 +18,8 @@ RUN sudo groupadd -g 127 docker RUN sudo useradd -u 1001 -g 127 -ms /bin/bash runner RUN echo "%runner ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers +USER ${username} + # trust git folders with different owners # RUN echo "W3NhZmVdCglkaXJlY3RvcnkgPSAqCg==" | base64 -d > $HOME/.gitconfig # RUN sudo git config --global --add safe.directory '*'