Created
August 15, 2023 08:22
-
-
Save GamePlayer-8/b25af78a044751be6c0d73ccf8517091 to your computer and use it in GitHub Desktop.
Dockerfile for yay ArchLinux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM archlinux | |
RUN useradd yay | |
RUN mkdir /home/yay && \ | |
chown -R yay:yay /home/yay | |
RUN pacman -Syu --noconfirm go git base-devel sudo | |
RUN echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers && \ | |
usermod -aG wheel yay | |
USER yay | |
WORKDIR /home/yay | |
RUN git clone https://aur.archlinux.org/yay.git | |
RUN cd yay && \ | |
makepkg -si --noconfirm | |
CMD ["yay"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment