Last active
February 8, 2022 04:14
-
-
Save u8sand/311c0889fc193da50a4d1627569d55c3 to your computer and use it in GitHub Desktop.
Docker u8sand/archlinux-devel-yaourt (https://hub.docker.com/r/u8sand/archlinux-devel-yaourt/)
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
# Usage: | |
#FROM u8sand/archlinux-devel-yaourt | |
#RUN echo "Instaling dependencies..." | |
#RUN pacman -Sy --noconfirm && sudo -u docker yaourt -S --noconfirm all your packages | |
# | |
# Your scripts | |
# | |
#Optional: Remove privileged account for security reasons | |
#RUN userdel -r docker && rm /etc/sudoers.d/docker | |
FROM base/devel | |
RUN echo "Preparing system..." | |
RUN pacman -Sy --noconfirm && \ | |
useradd -m docker && \ | |
echo "docker ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/docker && \ | |
cd /home/docker && \ | |
sudo -u docker mkdir package-query && \ | |
cd package-query && \ | |
sudo -u docker curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=package-query && \ | |
sudo -u docker makepkg -s --noconfirm && \ | |
pacman -U --noconfirm *.xz && \ | |
cd .. && \ | |
sudo -u docker mkdir yaourt && \ | |
cd yaourt && \ | |
sudo -u docker curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yaourt && \ | |
sudo -u docker makepkg -s --noconfirm && \ | |
pacman -U --noconfirm *.xz && \ | |
cd .. && \ | |
sudo -u docker rm -r package-query yaourt && \ | |
rm -r /var/cache/pacman/pkg /var/lib/pacman/sync/ | |
CMD /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment