FROM archlinux:latest RUN type makepkg RUN id RUN pacman -Syu --noconfirm RUN pacman -Sy --noconfirm git vim jq base-devel RUN pacman -Sy --noconfirm sudo RUN echo 'build ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers RUN find / -name 'libreadline.*' -print | xargs chmod -v a+rx || true RUN useradd -m build RUN mkdir /packages.build/; chown build /packages.build VOLUME /packages.build/ COPY --chmod=0555 ./entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] CMD ["sh"] USER build WORKDIR /packages.build/