Metadata for the ArchiveTeam Docker Hub repositories
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
877 B

  1. FROM archlinux as base
  2. RUN pacman -Syuq --noconfirm git base-devel sudo
  3. RUN echo "Defaults lecture = never" > /etc/sudoers.d/privacy \
  4. && echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/wheel \
  5. && useradd -m -G wheel -s /bin/bash builder
  6. USER builder
  7. WORKDIR /home/builder
  8. RUN git clone https://aur.archlinux.org/yay.git \
  9. && cd yay \
  10. && makepkg -s --noconfirm
  11. ######
  12. # Runtime container
  13. ######
  14. FROM archlinux
  15. RUN pacman -Syuq --noconfirm git base-devel sudo namcap \
  16. && rm -rf /var/cache/pacman/pkg/*
  17. RUN echo "Defaults lecture = never" > /etc/sudoers.d/privacy \
  18. && echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/wheel \
  19. && useradd -m -G wheel -s /bin/bash builder
  20. USER builder
  21. WORKDIR /home/builder
  22. COPY --from=base /home/builder/yay/*.pkg.tar.* /home/builder/pkg/
  23. RUN sudo pacman -U --noconfirm /home/builder/pkg/*.pkg.tar.*