2024-09-26 09:42:07 +00:00
|
|
|
FROM archlinux/archlinux:latest
|
2024-09-22 06:42:37 +00:00
|
|
|
|
2024-09-26 09:42:07 +00:00
|
|
|
RUN pacman-key --init
|
|
|
|
RUN pacman -Sy git binutils make pkg-config fakeroot openssl base-devel --noconfirm
|
2024-09-22 06:42:37 +00:00
|
|
|
|
2024-09-26 09:42:07 +00:00
|
|
|
# Create a new user
|
|
|
|
RUN useradd --no-create-home --shell=/bin/false build && usermod -L build
|
|
|
|
RUN echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
|
|
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
|
|
|
|
|
|
USER build
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
RUN git clone https://aur.archlinux.org/yay-bin.git
|
|
|
|
|
|
|
|
WORKDIR /tmp/yay-bin
|
|
|
|
RUN makepkg -si --noconfirm
|
|
|
|
|
|
|
|
RUN yay -Sy texlive-full --noconfirm
|