-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (26 loc) · 878 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM base/devel
MAINTAINER phillip@schichtel
COPY pacman.conf /etc/pacman.conf
RUN pacman -Sy --noconfirm && \
pacman -S --noconfirm archlinux-keyring && \
pacman -Su --noconfirm
RUN yes | pacman -S gcc-multilib
RUN pacman -S --noconfirm repose devtools
RUN useradd --home /build --create-home builder
WORKDIR /build
COPY sudoer.conf /etc/sudoers.d/builder
ENV REPO=cubyte \
UTILS=aurutils-git
RUN mkdir /repo && chown builder:builder /repo
VOLUME ["/repo"]
USER builder
RUN curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/${UTILS}.tar.gz && \
tar xf ${UTILS}.tar.gz && \
cd ${UTILS} && \
makepkg --syncdeps --clean --noconfirm && \
sudo pacman -U --noconfirm ${UTILS}-*.pkg.tar.xz && \
cd .. && \
rm -Rf ${UTILS} ${UTILS}.tar.gz && \
yes | sudo pacman -Sccc
COPY build.sh /build/build.sh
ENTRYPOINT ["/build/build.sh"]