Skip to content

Commit

Permalink
add yay, and "build" user
Browse files Browse the repository at this point in the history
  • Loading branch information
soloturn committed Jul 10, 2020
1 parent 48ca1a3 commit dc35d7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ FROM archlinux:latest AS arch
RUN pacman -Syu base-devel git --noconfirm && sed -i '/E_ROOT/d' /usr/bin/makepkg
RUN mv /usr/include/bits/stdlib.h /tmp
RUN perl -n -i -e 'print unless m-bits/stdlib.h-' /usr/include/stdlib.h
RUN useradd -m -G wheel -s /bin/bash build
RUN perl -i -pe 's/# (%wheel ALL=\(ALL\) NOPASSWD: ALL)/$1/' /etc/sudoers
USER build
RUN cd /tmp && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si --noconfirm
USER root
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit dc35d7c

Please sign in to comment.