blob: e19e7afee1135908cee2c17941c470d55c972bd6 (
plain)
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
|
FROM archlinux:base-devel
ARG AUR_RPC_BASE_URL="https://aur.archlinux.org/rpc/"
ARG PACKAGE_NAME=""
ARG BUILD_ALL_AUR_DEPENDS="no"
ARG PACKAGER="John Doe <john@doe.com>"
RUN pacman --noconfirm -Syu
RUN pacman --noconfirm -S git sudo
RUN groupadd sudo
RUN useradd -G sudo -d /workdir -m aurbuilder
COPY --chown=root:root sudoers /etc/sudoers
RUN mkdir /pkgout /db
VOLUME /pkgout
VOLUME /db
RUN pacman --noconfirm -S python python-requests
RUN mkdir -p /opt/aurbuilder
COPY --chown=root:root bin/ /opt/aurbuilder
ENV PATH="${PATH}:/opt/aurbuilder"
CMD buildpackage.sh
|