Created
June 25, 2022 17:41
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM archlinux:base-devel | |
LABEL org.opencontainers.image.authors="avatar@arkane-systems.net" | |
RUN pacman -Syu --noconfirm pacman-contrib git | |
# makepkg user and workdir | |
ARG pkguser=makepkg | |
RUN useradd --system --create-home $pkguser \ | |
&& echo "$pkguser ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$pkguser | |
USER $pkguser | |
WORKDIR /home/$pkguser | |
# Install yay | |
RUN git clone https://aur.archlinux.org/yay.git \ | |
&& cd yay \ | |
&& makepkg -sri --needed --noconfirm \ | |
&& cd \ | |
# Clean up | |
&& rm -rf .cache yay | |
USER root | |
WORKDIR / | |
# makepkg user and workdir | |
ARG builduser=build | |
RUN useradd --system --create-home $builduser \ | |
&& echo "$builduser ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$builduser | |
USER $builduser | |
WORKDIR /home/$builduser | |
RUN sudo pacman -S python-pip python-psutil inetutils --noconfirm | |
RUN yay -S daemonize --noconfirm | |
USER root | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment