Skip to content

Commit

Permalink
paru-bin instead of paru
Browse files Browse the repository at this point in the history
  • Loading branch information
soloturn committed May 31, 2022
1 parent 892f591 commit b60db00
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM archlinux:latest AS arch
RUN pacman -Syu base-devel git --noconfirm --overwrite '*' && sed -i '/E_ROOT/d' /usr/bin/makepkg
RUN useradd -m -G wheel -s /bin/bash build
RUN perl -i -pe 's/# (%wheel ALL=\(ALL\) NOPASSWD: ALL)/$1/' /etc/sudoers
RUN perl -i -pe 's/# (%wheel ALL=\(ALL:ALL\) NOPASSWD: ALL)/$1/' /etc/sudoers
RUN cat /etc/sudoers
USER build
RUN cd /tmp && git clone https://aur.archlinux.org/paru.git
RUN cd paru && source PKGBUILD && pacman -Syu --noconfirm && pacman -S --noconfirm --needed --asdeps "${makedepends[@]}" "${depends[@]}"
RUN cd /tmp && git clone https://aur.archlinux.org/paru-bin.git
RUN cd /tmp/paru-bin && sudo pacman -Syu --noconfirm && makepkg -sf

USER root
COPY entrypoint.sh /entrypoint.sh
Expand Down

0 comments on commit b60db00

Please sign in to comment.