diff options
| author | RATDAD <lambda@disroot.org> | 2025-12-19 02:13:32 -0500 |
|---|---|---|
| committer | RATDAD <lambda@disroot.org> | 2025-12-19 02:13:32 -0500 |
| commit | 714cb1569999b4a51c8bfd24b17736f82f64100c (patch) | |
| tree | 6735e6d52347756bc6e313bbc81e2c80eea4d549 /Dockerfile | |
| parent | 50f0b6075edb49ffc09090d0ee71391f44c64daf (diff) | |
| download | cgit-docker-master.tar.gz cgit-docker-master.tar.bz2 cgit-docker-master.zip | |
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -1,6 +1,6 @@ # # -# docker-cgit Docker Container +# cgit-docker Docker Container ################### # Build Stage ################### @@ -31,13 +31,16 @@ LABEL MAINTAINER="RATDAD <lambda@disroot.org>" # 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 |
