summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorRATDAD <lambda@disroot.org>2025-12-12 01:49:48 -0500
committerRATDAD <lambda@disroot.org>2025-12-12 01:49:48 -0500
commitde8d06726cae205ead43f8b1ac07ecc59a07363b (patch)
tree7b7cf48605040f0f07c618c2b78d7aad927249b6 /Dockerfile
parent0c7bf0252aa5b9a2c3a3d95ce84370a3d67cb62b (diff)
downloadcgit-docker-de8d06726cae205ead43f8b1ac07ecc59a07363b.tar.gz
cgit-docker-de8d06726cae205ead43f8b1ac07ecc59a07363b.tar.bz2
cgit-docker-de8d06726cae205ead43f8b1ac07ecc59a07363b.zip
Edited README, omitted /cgit.cgi/ from urls, added HTTP Basic Auth
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile21
1 files changed, 15 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 3190d9f..f510d84 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,10 +1,14 @@
+#
+#
+# cgit Docker Container
+
FROM rockylinux:9
-LABEL MAINTAINER="Lambda <lambda@disroot.org>"
+LABEL MAINTAINER="RATDAD <lambda@disroot.org>"
# Update everything; install dependencies.
RUN dnf -y update && dnf -y upgrade \
&& dnf install -y git gcc make openssl-devel zlib-devel zip \
- highlight httpd \
+ highlight httpd pip \
&& dnf clean all
# Install cgit.
@@ -20,12 +24,17 @@ RUN cd cgit \
# Configure.
ADD etc/cgitrc /etc/cgitrc
-ADD etc/httpd/httpd.conf /etc/httpd/conf/httpd.conf
+ADD etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf
+
+# Add helper scripts.
+COPY opt/ /opt
+RUN chmod +x /opt/*
-# Add custom syntax highlighting.
-COPY opt/highlight.sh /opt/highlight.sh
+# Entrypoint.
+COPY ./entrypoint.sh /
+RUN chmod +x /entrypoint.sh
# You SHOULD run this behind a reverse proxy.
# Thus, 443 isn't being exposed.
EXPOSE 80
-CMD [ "httpd", "-DFOREGROUND" ] \ No newline at end of file
+ENTRYPOINT [ "/entrypoint.sh" ]