aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
blob: c309d3398d6a0d00e4b8b6079b4e4b9b85535675 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM archlinux/archlinux

RUN echo 'Server = https://mirror.netcologne.de/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist && \
    pacman -Syu --noconfirm && \
    pacman -S --noconfirm base-devel devtools pacman-contrib namcap

RUN groupadd package && \
    useradd -m -d /home/package -c 'Package Creation User' -s /usr/bin/bash -g package package && \
    echo 'package ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers

USER package
WORKDIR /home/package/pkg
ENTRYPOINT sudo pacman -Syu --noconfirm && makepkg -s --noconfirm --skippgpcheck