From cf9bd155939aff858cda2446591192ad99624857 Mon Sep 17 00:00:00 2001 From: xengi Date: Wed, 5 Aug 2026 15:43:13 +0200 Subject: [PATCH] Add Containerfile Signed-off-by: xengi --- Containerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..2bb68e9 --- /dev/null +++ b/Containerfile @@ -0,0 +1,23 @@ +FROM archlinux:base-devel + +LABEL org.opencontainers.image.created="%%CREATED%%" +LABEL org.opencontainers.image.authors="Ricardo Band " +LABEL org.opencontainers.image.url="https://gitlab.com/XenGi0/containers/archlinux-aur" +LABEL org.opencontainers.image.source="https://gitlab.com/XenGi0/containers/archlinux-aur" +LABEL org.opencontainers.image.version="latest" +LABEL org.opencontainers.image.revision="%%COMMIT%%" +LABEL org.opencontainers.image.title="archlinux-aur" +LABEL org.opencontainers.image.description="archlinux:base-devel with aur helper (yay) preinstalled" + +RUN pacman -Syyu --noconfirm --noprogressbar sudo git go pacman-contrib \ + && useradd --uid 1000 -c "aur helper" -m -s /bin/sh dev \ + && echo "dev ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers + +USER 1000 + +RUN git clone https://aur.archlinux.org/yay.git $HOME/yay \ + && cd $HOME/yay; makepkg -csi --noconfirm --noprogressbar \ + && sudo pacman -Rs --noconfirm --noprogressbar go \ + && rm -rf $HOME/yay \ + && rm -rf $HOME/.cache \ + && sudo rm -rf /var/cache/pacman/pkg/* \ No newline at end of file