summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile.cgit
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-08-07 01:09:35 -0400
committerMalfurious <m@lfurio.us>2022-08-07 01:09:35 -0400
commit5f193b72eb666755151faf15b71c4ffc45090745 (patch)
tree4d7819d8c0e65768411ac8d49ca52e5bf20a8d2a /docker/Dockerfile.cgit
parentea1b0343eac09b1946a71522230944486c74bb5f (diff)
downloadsrcnode-5f193b72eb666755151faf15b71c4ffc45090745.tar.gz
srcnode-5f193b72eb666755151faf15b71c4ffc45090745.zip
Add cgit docker image
Apache webserver (httpd) is setup minimally to host cgit on a website (sub)domain root. cgitrc config file is based on that from my previous installation, in my personal website. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'docker/Dockerfile.cgit')
-rw-r--r--docker/Dockerfile.cgit15
1 files changed, 15 insertions, 0 deletions
diff --git a/docker/Dockerfile.cgit b/docker/Dockerfile.cgit
new file mode 100644
index 0000000..7108420
--- /dev/null
+++ b/docker/Dockerfile.cgit
@@ -0,0 +1,15 @@
+# https://git.zx2c4.com/cgit/
+# https://wiki.archlinux.org/title/Cgit
+
+FROM archlinux
+
+# Install cgit and webserver
+RUN pacman-key --init
+RUN pacman -Syu --needed --noconfirm apache cgit
+
+# Copy configuration files
+# Back-end datastore is expected to be mounted to /data (read-only)
+COPY httpd.conf /etc/httpd/conf/httpd.conf
+COPY cgitrc /etc/cgitrc
+
+CMD ["/usr/bin/httpd", "-DFOREGROUND"]