Update Dockerfile

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

View File

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