Fix Dockerfile to ensure sudoers configuration is applied correctly
All checks were successful
Push Docker image / build (push) Successful in 3m47s
All checks were successful
Push Docker image / build (push) Successful in 3m47s
This commit is contained in:
parent
8751197146
commit
5b1d443c32
1 changed files with 2 additions and 1 deletions
|
@ -2,8 +2,9 @@ FROM archlinux:base-devel
|
|||
|
||||
RUN pacman -Syu --needed --noconfirm nodejs git
|
||||
|
||||
RUN echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
|
||||
RUN useradd -d /build -m build
|
||||
USER build
|
||||
|
||||
WORKDIR /build
|
||||
RUN echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue