Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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