# syntax=docker/dockerfile:1 FROM archlinux:latest ARG USERNAME=nonrootuser RUN useradd -m $USERNAME RUN pacman -Sy --noconfirm sudo RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME RUN chmod 0440 /etc/sudoers.d/$USERNAME USER $USERNAME COPY . . WORKDIR /packaging/arch RUN pwd RUN ls -al RUN makepkg -si --noconfirm