aur_builder/Containerfile

24 lines
444 B
Docker

FROM docker.io/archlinux:base-devel
LABEL Description="Container to build archlinux packages"
COPY packager.conf /etc/makepkg.conf.d/packager.conf
COPY sudoers /etc/sudoers.d/builder
COPY run.sh /run.sh
# COPY ./yay /usr/bin/yay
RUN echo "169.254.1.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