Update Dockerfile

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-08-14 18:22:51 +03:00 committed by GitHub
parent c0bb938940
commit 259b3a612e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,5 +9,5 @@ RUN mv ./yay_12.1.2_x86_64/yay /usr/bin/
# Root DANGEROUS BLAH BLAH BLAH # Root DANGEROUS BLAH BLAH BLAH
RUN useradd builduser -m RUN useradd builduser -m
RUN passwd -d builduser RUN passwd -d builduser
RUN printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow the builduser passwordless sudo RUN printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers
RUN sudo -u builduser bash -c 'cd ~ && yay -Sy && yay -S yay --noconfirm' RUN sudo -u builduser bash -c 'cd ~ && yay -S yay-bin --noconfirm'