aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-03 03:18:55 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-03 03:18:55 +0100
commit1ee6f5936d8bbb4895925ad61484125aae3c2327 (patch)
tree86317da86186f84edca5b9a9691ae55f6905582c
parent3fc50898940dbd46222dc4ee7c7576ae414f719b (diff)
downloadcgit-oci-1ee6f5936d8bbb4895925ad61484125aae3c2327.tar.gz
cgit-oci-1ee6f5936d8bbb4895925ad61484125aae3c2327.tar.bz2
cgit-oci-1ee6f5936d8bbb4895925ad61484125aae3c2327.tar.lz
cgit-oci-1ee6f5936d8bbb4895925ad61484125aae3c2327.zip

feat: nice userland target

-rw-r--r--Dockerfile21
1 files changed, 13 insertions, 8 deletions
diff --git a/Dockerfile b/Dockerfile
index b0493eb..9845528 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -63,17 +63,22 @@ CMD ["sh", "-c", "/usr/local/bin/prepare-container.sh && sh -c 'sleep 3 && chgrp
FROM base AS with-fmt
RUN apk add --no-cache py3-markdown py3-docutils groff
-RUN echo -e 'about-filter=/usr/lib/cgit/filters/about-formatting.sh\n\
-readme=:README.rst\n\
-readme=:readme.rst\n\
-readme=:README.md\n\
-readme=:readme.md\n\
-readme=:README\n\
-readme=:readme\n\
-' >> /etc/cgitrc.default
+RUN echo -e 'about-filter=/usr/lib/cgit/filters/about-formatting.sh\n' >> /etc/cgitrc.default
FROM with-fmt AS with-highlighting
RUN apk add --no-cache highlight
ADD image/syntax-highlighting.sh /usr/lib/cgit/filters/syntax-highlighting-uwu.sh
RUN chmod +x /usr/lib/cgit/filters/syntax-highlighting-uwu.sh
RUN echo 'source-filter=/usr/lib/cgit/filters/syntax-highlighting-uwu.sh' >> /etc/cgitrc.default
+
+FROM with-highlighting AS full
+# with nice userland aswell
+RUN apk add --no-cache curl zsh-fast-syntax-highlighting
+RUN sed -i 's|/bin/ash|/bin/zsh|g' /etc/passwd
+RUN (git clone https://git.estrogen.zone/zuwu.git/ /tmp/zuwu || git clone https://github.com/dmpmem/zuwu.git /tmp/zuwu) && \
+ cd /tmp/zuwu && \
+ ./install.zsh && \
+ /usr/local/share/zsh/plugins/zuwu/setup.zsh && \
+ sudo -u git /usr/local/share/zsh/plugins/zuwu/setup.zsh && \
+ cd ~ && \
+ rm -rf /tmp/zuwu