aboutsummaryrefslogtreecommitdiff
path: root/docker/dockerfile
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2021-10-26 18:57:31 +0800
committerKunoiSayami <[email protected]>2021-10-26 18:57:31 +0800
commit5ea81082107764d211139d0b115b1cb3c59617a7 (patch)
treea69cf17bfe13333d759bdde04971907e5610e2bf /docker/dockerfile
parentdac56755926fc4bc8676109cceb7f0ef57a46693 (diff)
feat(docker): Support using docker to build packages
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'docker/dockerfile')
-rw-r--r--docker/dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/docker/dockerfile b/docker/dockerfile
new file mode 100644
index 0000000..4ae53aa
--- /dev/null
+++ b/docker/dockerfile
@@ -0,0 +1,13 @@
+FROM repobuildbase:latest
+
+RUN pacman --noconfirm --needed -Syu base-devel gnupg git
+
+RUN useradd -m build
+
+RUN echo 'build ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers
+
+COPY dockerbuild.sh /home/build/
+
+USER build
+
+ENTRYPOINT ["bash", "-c", "/home/build/dockerbuild.sh"]