Skip to content

Commit 45e2941

Browse files
authored
Update Dockerfile
1 parent e2cfe1d commit 45e2941

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ RUN pacman -S --needed git wget base-devel --noconfirm
66
RUN wget https://github.com/Jguer/yay/releases/download/v12.1.2/yay_12.1.2_x86_64.tar.gz
77
RUN tar -xf ./yay_12.1.2_x86_64.tar.gz
88
RUN mv ./yay_12.1.2_x86_64/yay /usr/bin/
9-
RUN sudo -u nobody yay -Sy
10-
RUN sudo -u nobody yay -S yay
9+
RUN printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow the builduser passwordless sudo
10+
RUN sudo -u builduser bash -c 'cd ~ && yay -Sy && yay -S yay --noconfirm'

0 commit comments

Comments
 (0)