Fix Dockerfile to ensure sudoers configuration is applied correctly
All checks were successful
Push Docker image / build (push) Successful in 3m47s

This commit is contained in:
Edgar P. Burkhart 2025-05-05 18:59:37 +02:00
parent 8751197146
commit 5b1d443c32
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -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