Skip to content

Commit

Permalink
remove ubuntu user
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy committed Jul 30, 2024
1 parent 8f2e524 commit 63e9eb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/minimal-runner-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ FROM ubuntu:20.04
RUN apt -yq update && \
apt -yq install --no-install-recommends git curl wget ca-certificates sudo build-essential

RUN groupadd -g 1000 ubuntu && useradd -ms /bin/bash -u 1000 -g 1000 ubuntu && \
groupadd -g 1001 runner && useradd -ms /bin/bash -u 1001 -g 1001 runner && \
RUN groupadd -g 1001 runner && useradd -ms /bin/bash -u 1001 -g 1001 runner && \
echo "ALL ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

USER runner
Expand Down

0 comments on commit 63e9eb9

Please sign in to comment.