aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-11-07 00:11:50 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-11-07 00:11:50 +0100
commit800ded9aac3cb1d735609748a3967af3532d0cd9 (patch)
tree0bb1860e3fb0b427e94ab9b7ca38fc98d334095a /Dockerfile
parent99b401b5e89943795dd45ea323dd57f280273701 (diff)
downloadaurbuilder-800ded9aac3cb1d735609748a3967af3532d0cd9.tar.gz
semi-working
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 13bb9a3..e19e7af 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,17 @@
FROM archlinux:base-devel
-RUN pacman --noconfirm -Syu
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
@@ -11,6 +19,9 @@ VOLUME /db
RUN pacman --noconfirm -S python python-requests
-COPY --chown=root:root buildpackage.sh /buildpackage.sh
+RUN mkdir -p /opt/aurbuilder
+
+COPY --chown=root:root bin/ /opt/aurbuilder
+ENV PATH="${PATH}:/opt/aurbuilder"
-CMD /buildpackage.sh
+CMD buildpackage.sh