summaryrefslogtreecommitdiff
path: root/slave.Dockerfile
blob: f0182d3888142f61b27498f2c34665510beecdc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM archlinux:base-devel

WORKDIR /builder/

RUN pacman-key --init
RUN curl -Ss https://arch.eckner.net/README | sed 's@^Server = https:.*$@Include = /etc/pacman.d/mirrorlist \\@' | bash
COPY mirrorlist /etc/pacman.d/
RUN pacman -Syu --noconfirm git
RUN sed -i ' \
  /PACKAGER/ s/.*/PACKAGER="Erich Eckner <arch at eckner dot net>"/; \
  /^OPTIONS/ s/ debug/ !debug/ \
' /etc/makepkg.conf

RUN useradd -m builder
RUN git clone https://git.archlinux32.org/builder/ /builder
RUN mkdir /builder/work

RUN chown builder:builder /builder/work

USER builder

CMD /builder/bin/build-packages