Skip to content

Commit

Permalink
Revert "user build"
Browse files Browse the repository at this point in the history
This reverts commit 3fc3cda.
  • Loading branch information
openedev committed Aug 16, 2024
1 parent 3fc3cda commit 2b4136a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ RUN apt-get update && apt-get install -y \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN echo "build ALL=NOPASSWD: ALL" > /etc/sudoers.d/build-nopasswd && \
chmod 660 /etc/sudoers.d/build-nopasswd

RUN groupadd build -g 30000 && \
useradd build -u 30000 -g 30000 --create-home --home-dir /build
RUN useradd -ms /bin/bash build
RUN usermod -aG sudo build
RUN echo "build ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/build

USER build
WORKDIR /home/build

0 comments on commit 2b4136a

Please sign in to comment.