1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
FROM archlinux:base-devel ARG USER=build ARG UID=1000 ARG GID=1000 RUN useradd -m ${USER} --uid=${UID} -G wheel RUN pacman-key --init RUN pacman -Syu namcap gnome-keyring tpm2-tss openssl --noconfirm RUN echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/build RUN mkdir /build WORKDIR /build USER ${UID} CMD [ "/usr/sbin/makepkg", "--noconfirm"]