Update Dockerfile

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

View File

@ -5,9 +5,10 @@ RUN pacman -Syu --noconfirm
RUN pacman -S --needed git wget base-devel --noconfirm 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/build-yay
# 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 RUN printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers
RUN sudo -u builduser bash -c 'cd ~ && yay -S yay-bin --noconfirm' RUN sudo -u builduser bash -c 'cd ~ && build-yay -S yay --noconfirm'
RUN rm -rfv /usr/bin/build-yay