Archived
1
0
Fork 0

yaourt has a smaller footprint than yay

but it is still ugly
This commit is contained in:
Joerg Elfring 2019-08-30 21:37:16 +02:00
parent 105a43a017
commit 5b201f5689

View file

@ -9,26 +9,32 @@ COPY assets/mirrorlist /etc/pacman.d/mirrorlist
RUN pacman --sync --refresh --needed --noconfirm \ RUN pacman --sync --refresh --needed --noconfirm \
base-devel \ base-devel \
git \ git \
go \
&& useradd --create-home user && useradd --create-home user
COPY assets/sudoers /etc/sudoers COPY assets/sudoers /etc/sudoers
## Switch to the new user and install yay from aur ## Switch to the new user and install yaourt from aur
USER user USER user
RUN cd /home/user \ RUN cd /tmp \
&& git clone https://aur.archlinux.org/yay.git \ ## Install package-query, a prereq for yaourt
&& cd yay \ && curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz \
&& makepkg --syncdeps --install --noconfirm \ && tar -xvzf package-query.tar.gz \
&& cd /home/user \ && cd package-query \
&& rm -rf yay && makepkg -si --noconfirm \
&& cd /tmp \
## Install profanity-git from aur && rm -rf package-query.tar.gz package-query \
RUN cd /home/user \ ## Install yaourt
&& yay --sync --noconfirm profanity-git && curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz \
&& tar -xvzf yaourt.tar.gz \
## Cleanup && cd yaourt \
RUN sudo pacman --noconfirm -Rcns go yay texinfo \ && makepkg -si --noconfirm \
&& sudo pacman --noconfirm -Rsn $(pacman -Qqdt) && cd /tmp \
&& rm -rf yaourt.tar.gz yaourt \
## Install profanity
&& cd /home/user \
&& yaourt --sync --noconfirm profanity-git \
## Cleanup
&& sudo pacman --noconfirm -Rcns yaourt package-query git \
&& sudo pacman --noconfirm -Rsn $(pacman -Qqdt)
WORKDIR /home/user WORKDIR /home/user
CMD ["/usr/sbin/profanity"] CMD ["/usr/sbin/profanity"]