mirror of
https://github.com/jopohl/urh.git
synced 2026-03-07 16:56:48 +01:00
27 lines
983 B
Plaintext
27 lines
983 B
Plaintext
FROM base/archlinux
|
|
RUN mkdir -p /root/.gnupg
|
|
RUN pacman -Sy --noconfirm archlinux-keyring
|
|
RUN pacman -Syu --noconfirm && pacman-db-upgrade
|
|
RUN pacman -S --noconfirm ca-certificates ca-certificates-mozilla
|
|
RUN pacman -S --noconfirm curl base-devel nano vim
|
|
|
|
RUN useradd -m -G wheel -s /bin/bash dockeruser
|
|
RUN echo "dockeruser ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
|
|
WORKDIR /tmp
|
|
RUN curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
|
|
RUN sudo -u dockeruser tar -xvzf package-query.tar.gz
|
|
WORKDIR /tmp/package-query
|
|
RUN sudo -u dockeruser makepkg -si --noconfirm
|
|
|
|
WORKDIR /tmp
|
|
RUN curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
|
|
RUN sudo -u dockeruser tar -xvzf yaourt.tar.gz
|
|
WORKDIR /tmp/yaourt
|
|
RUN sudo -u dockeruser makepkg -si --noconfirm
|
|
|
|
RUN echo "#!/bin/bash" > /bin/run.sh
|
|
RUN echo "sudo -u dockeruser yaourt -S --noconfirm urh" >> /bin/run.sh
|
|
RUN echo "urh autoclose" >> /bin/run.sh
|
|
RUN chmod +x /bin/run.sh
|
|
CMD /bin/run.sh |