Attempt again to fix the yay package install

This commit is contained in:
zontreck 2024-09-04 21:46:01 -07:00
parent 7d726413a8
commit 0b5af36a1d

View file

@ -4,29 +4,35 @@ LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
LABEL upstream="https://github.com/pelican-eggs/yolks"
RUN pacman -Sy
RUN echo "y" | pacman -Syu
RUN echo "y" | pacman -S base-devel git gcc cmake nasm curl tar zip unzip sqlite3 bzip2 cabextract gnu-netcat
RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm base-devel git gcc cmake nasm curl tar zip unzip sqlite3 bzip2 cabextract gnu-netcat
RUN useradd -m -d /home/container -s /bin/bash container
RUN useradd -m -G wheel bld && passwd -d bld
ENV USER=container HOME=/home/container
WORKDIR /home/container
STOPSIGNAL SIGINT
USER container
# Install Yay from the builder
RUN mkdir -pv /tmp
WORKDIR /tmp
RUN git clone https://aur.archlinux.org/yay.git
# Create necessary entry to sudoers
RUN echo "bld ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN su - bld -c "git clone https://aur.archlinux.org/yay.git /tmp/yay"
WORKDIR /tmp/yay
RUN echo "y" | makepkg -si
USER bld
RUN su - bld -c "makepkg -si --noconfirm"
WORKDIR /
RUN rm -rf /tmp/yay
RUN echo "y" | yay -S tini-git
RUN yay -S --noconfirm tini-git
USER container
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh