yaourt has a smaller footprint than yay
but it is still ugly
This commit is contained in:
parent
105a43a017
commit
5b201f5689
1 changed files with 22 additions and 16 deletions
|
@ -9,25 +9,31 @@ 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 package-query \
|
||||||
|
&& makepkg -si --noconfirm \
|
||||||
|
&& cd /tmp \
|
||||||
|
&& rm -rf package-query.tar.gz package-query \
|
||||||
|
## Install yaourt
|
||||||
|
&& curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz \
|
||||||
|
&& tar -xvzf yaourt.tar.gz \
|
||||||
|
&& cd yaourt \
|
||||||
|
&& makepkg -si --noconfirm \
|
||||||
|
&& cd /tmp \
|
||||||
|
&& rm -rf yaourt.tar.gz yaourt \
|
||||||
|
## Install profanity
|
||||||
&& cd /home/user \
|
&& cd /home/user \
|
||||||
&& rm -rf yay
|
&& yaourt --sync --noconfirm profanity-git \
|
||||||
|
## Cleanup
|
||||||
## Install profanity-git from aur
|
&& sudo pacman --noconfirm -Rcns yaourt package-query git \
|
||||||
RUN cd /home/user \
|
|
||||||
&& yay --sync --noconfirm profanity-git
|
|
||||||
|
|
||||||
## Cleanup
|
|
||||||
RUN sudo pacman --noconfirm -Rcns go yay texinfo \
|
|
||||||
&& sudo pacman --noconfirm -Rsn $(pacman -Qqdt)
|
&& sudo pacman --noconfirm -Rsn $(pacman -Qqdt)
|
||||||
|
|
||||||
WORKDIR /home/user
|
WORKDIR /home/user
|
||||||
|
|
Reference in a new issue