From 714cb1569999b4a51c8bfd24b17736f82f64100c Mon Sep 17 00:00:00 2001 From: RATDAD Date: Fri, 19 Dec 2025 02:13:32 -0500 Subject: Ensured OOB syntax highlighting and markdown formatting. --- Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index d753265..676e23f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # # -# docker-cgit Docker Container +# cgit-docker Docker Container ################### # Build Stage ################### @@ -31,13 +31,16 @@ LABEL MAINTAINER="RATDAD " # Runtime dependencies RUN dnf -y update && dnf -y install \ - httpd git highlight \ + httpd git highlight pip groff \ openssl zlib zip \ && dnf clean all # Install cgit artifacts. COPY --from=builder /build/install / +# Install formatting tools +RUN pip install pygments catppuccin[pygments] markdown docutils + # If set to 0, the container will not \ # handle git-http-backend for you. ENV GIT_HTTP_MODE=0 @@ -52,13 +55,6 @@ ADD etc/httpd/conf.d/git-http-cf.conf /etc/httpd/conf.d/git-http-cf.conf ADD etc/httpd/conf.d/git-http-pcf.conf /etc/httpd/conf.d/git-http-pcf.conf ADD etc/httpd/conf.d/git-http-apcf.conf /etc/httpd/conf.d/git-http-apcf.conf -# Add helper scripts. -COPY opt/ /opt -RUN chmod +x /opt/* - -# Prevent git-http-backend safe.directory errors. -RUN git config --system --add safe.directory /srv/git - # Entrypoint. COPY ./entrypoint.sh / RUN chmod +x /entrypoint.sh -- cgit v1.2.3-70-g09d2