FROM archlinux:base-devel ENV PACKAGE_NAME="" ENV PACKAGER="John Doe " ENV ARCH="x86_64" ENV FORCE_REBUILD="no" ENV CHOWN="" RUN pacman --noconfirm -Syu RUN pacman --noconfirm -S git sudo RUN groupadd sudo RUN useradd --groups sudo --home-dir /workdir --create-home --user-group --system aurbuilder COPY --chown=root:root sudoers /etc/sudoers RUN mkdir /pkgout VOLUME /pkgout RUN mkdir /pkgdest RUN chown aurbuilder:aurbuilder /pkgdest RUN pacman --noconfirm -S python python-requests RUN mkdir -p /opt/aurbuilder COPY --chown=root:root bin/ /opt/aurbuilder ENV PATH="${PATH}:/opt/aurbuilder" CMD buildpackage.sh