# FROM docker.io/archlinux:base-devel
FROM quay.io/archlinux/archlinux:base-devel

LABEL Description="Container to build archlinux packages"

COPY makepkg.conf /etc/makepkg.conf.d/custom.conf
COPY sudoers /etc/sudoers.d/builder
COPY run.sh /run.sh

# RUN echo "100.64.0.2     archmirror.i.balki.me" >> /etc/hosts

COPY mirrorlist /etc/pacman.d/mirrorlist

RUN pacman -Sy --noconfirm git

RUN useradd builder -m

WORKDIR /home/builder

USER builder

CMD /run.sh
