diff options
| author | RATDAD <lambda@disroot.org> | 2025-12-12 01:49:48 -0500 |
|---|---|---|
| committer | RATDAD <lambda@disroot.org> | 2025-12-12 01:49:48 -0500 |
| commit | de8d06726cae205ead43f8b1ac07ecc59a07363b (patch) | |
| tree | 7b7cf48605040f0f07c618c2b78d7aad927249b6 /Dockerfile | |
| parent | 0c7bf0252aa5b9a2c3a3d95ce84370a3d67cb62b (diff) | |
| download | cgit-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-- | Dockerfile | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -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" ] |
