From de8d06726cae205ead43f8b1ac07ecc59a07363b Mon Sep 17 00:00:00 2001 From: RATDAD Date: Fri, 12 Dec 2025 01:49:48 -0500 Subject: Edited README, omitted /cgit.cgi/ from urls, added HTTP Basic Auth --- Dockerfile | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'Dockerfile') 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 " +LABEL MAINTAINER="RATDAD " # 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" ] -- cgit v1.2.3-70-g09d2