Dockerfile 807 B

12345678910111213141516171819202122
  1. FROM archlinux/base as builder
  2. RUN pacman -Sy --noconfirm archlinux-keyring
  3. RUN pacman -Syu --noconfirm
  4. RUN pacman -S --noconfirm xorg-server-xvfb xorg-fonts-misc ttf-bitstream-vera base-devel git x11-ssh-askpass
  5. COPY PKGBUILD /tmp/build/
  6. RUN chmod 777 /tmp/build
  7. RUN echo "nobody ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
  8. WORKDIR /tmp/build
  9. RUN su nobody -s /bin/bash -c "makepkg -s --noconfirm"
  10. FROM archlinux/base
  11. COPY --from=builder /tmp/build/qqsp-1.9-1-x86_64.pkg.tar.xz /tmp/
  12. RUN pacman -Sy --noconfirm archlinux-keyring
  13. RUN pacman -Syu --noconfirm
  14. RUN pacman -S --noconfirm xorg-server-xvfb xorg-fonts-misc ttf-bitstream-vera
  15. RUN pacman --noconfirm -U /tmp/qqsp-1.9-1-x86_64.pkg.tar.xz
  16. RUN rm /tmp/qqsp-1.9-1-x86_64.pkg.tar.xz
  17. ENV QTWEBENGINE_DISABLE_SANDBOX=1
  18. ENTRYPOINT ["/usr/bin/Qqsp"]
  19. CMD []