diff --git a/package/aur/Dockerfile b/package/aur/Dockerfile new file mode 100644 index 0000000..784ec03 --- /dev/null +++ b/package/aur/Dockerfile @@ -0,0 +1,29 @@ +FROM archlinux:base-devel + +RUN pacman --needed --noconfirm -Syu \ + base \ + git \ + pacman-contrib \ + openssh + +RUN useradd -m builder && \ + echo "builder ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \ + echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \ + usermod -a -G wheel builder + +RUN mkdir -p /home/builder/.ssh && \ + touch /home/builder/.ssh/known_hosts + +COPY ./package/aur/ssh_config /home/builder/.ssh/config + +RUN chown -R builder:builder /home/builder/.ssh && \ + chmod 600 /home/builder/.ssh/* -R + +RUN mkdir /home/builder/packaging_scripts + +COPY publish.sh utils.sh *.PKGBUILD /home/builder/packaging_scripts + +USER builder +WORKDIR /home/builder + +ENTRYPOINT ["/home/builder/packaging_scripts/publish.sh"]