Rearrange commands

This commit is contained in:
zontreck 2024-09-04 21:28:52 -07:00
parent 62b0e8fe9c
commit 7d726413a8

View file

@ -7,6 +7,16 @@ 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 useradd -m -d /home/container -s /bin/bash container
ENV USER=container HOME=/home/container
WORKDIR /home/container
STOPSIGNAL SIGINT
USER container
# Install Yay from the builder
WORKDIR /tmp
RUN git clone https://aur.archlinux.org/yay.git
@ -17,13 +27,6 @@ RUN rm -rf /tmp/yay
RUN echo "y" | yay -S tini-git
RUN useradd -m -d /home/container -s /bin/bash container
ENV USER=container HOME=/home/container
WORKDIR /home/container
STOPSIGNAL SIGINT
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh