Metadata for the ArchiveTeam Docker Hub repositories
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

34 lignes
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.*