An AUR-capable Docker image.
It is intended to be used to manage dependencies from the AUR with pacaur in an otherwise minimal Arch image.
This image provides additionally a user
build in the group
/etc/sudoers/ is configured such that users in
sudo privileges without a password, allowing operations like
pacaur --noconfirm -S python-flask-git just work for
This user can also be used to build your own
PKGBUILDs. This image provides the directories
/home/build which belong to
/home/build exists only to contain
build (necessary for pacaur and some AUR packages), so
PKGBUILDs should be built in subdirectories of
$AURDEST is also set to
/build, so any packages installed via pacaur will have their source in
$PACMAN is set to
makepkg will resolve
PKGBUILD depends from the AUR using pacaur.
Here's an example Dockerfile using this as a base image:
FROM syntactician/archlinux-pacaur MAINTAINER Your Name # install from AUR su build -c 'pacaur --noconfirm -S python-flask-git' # build from a custom PKGBUILD via github WORKDIR /build RUN git clone https://github.com/your/git-package WORKDIR /build/git-package RUN makepkg --noconfirm -sri # build from local PKGBUILD COPY PKGBUILD /build/local-package/PKGBUILD WORKDIR /build/local-package RUN makepkg --noconfirm -sri # remove build user USER root RUN userdel -r build && rm /home/build