Skip to content

Commit

Permalink
fix prev
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-morse-plastic committed Mar 27, 2024
1 parent 9d6d836 commit 9d9ab85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion username-1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ 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
# RUN sudo useradd -u 1001 -g 127 -c ' ' -m -d /home/runner -s /bin/bash runner
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 '*'
Expand Down

0 comments on commit 9d9ab85

Please sign in to comment.