| | |
| | | RUN /usr/bin/chmod -v 1777 /tmp |
| | | |
| | | #Update and install software |
| | | RUN /usr/bin/pacman -Syu --noconfirm base-devel git sudo go && \ |
| | | RUN /usr/bin/pacman -Syu --noconfirm base-devel git sudo go rsync && \ |
| | | /usr/sbin/pacman -Scc --noconfirm && \ |
| | | /usr/sbin/echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers |
| | | |
| | |
| | | RUN /usr/sbin/groupadd --system sudo && \ |
| | | /usr/sbin/useradd -m --groups sudo user |
| | | USER user |
| | | |
| | | # install yay |
| | | RUN cd /tmp && \ |
| | | /usr/bin/git clone https://aur.archlinux.org/yay.git && \ |
| | | cd yay && \ |
| | | /usr/sbin/makepkg && \ |
| | | /usr/sbin/sudo /usr/bin/pacman -U yay*pkg*.tar.xz --noconfirm && \ |
| | | cd / && \ |
| | | rm -r /tmp/yay |