archlinux-aur/Dockerfile
xengi 8ea6e63163 Update Dockerfile
Signed-off-by: xengi <forgejo@xengi.de>
2026-08-06 10:56:34 +02:00

23 lines
No EOL
1 KiB
Docker

FROM archlinux:base-devel
LABEL org.opencontainers.image.created="%%CREATED%%"
LABEL org.opencontainers.image.authors="Ricardo Band <email@ricardo.band>"
LABEL org.opencontainers.image.url="https://git.sb20.xengi.de/xengi/archlinux-aur"
LABEL org.opencontainers.image.source="https://git.sb20.xengi.de/xengi/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/*