Skip to content

Instantly share code, notes, and snippets.

@eirikb
Created August 3, 2017 13:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eirikb/8c6df6ea47483ea8f83eb4033a1532a2 to your computer and use it in GitHub Desktop.
Save eirikb/8c6df6ea47483ea8f83eb4033a1532a2 to your computer and use it in GitHub Desktop.
Arch Linux AUR in Docker
FROM base/archlinux
RUN pacman -Syu
RUN pacman -S --noconfirm git base-devel
WORKDIR /build
RUN useradd -d /build build-user
RUN echo "build-user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN chown -R build-user /build
USER build-user
RUN git clone https://aur.archlinux.org/binaryen.git
WORKDIR /build/binaryen
RUN makepkg -si --noconfirm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment