added cgit image
Some checks failed
CI / Build dyndns docker images (push) Failing after 26s

This commit is contained in:
2025-10-29 17:59:07 +08:00
parent 84f467e55a
commit 652aaa9e6e
3 changed files with 63 additions and 0 deletions

11
cgit/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM alpine:3.22
ARG VERSION
RUN --mount=type=cache,target=/var/cache/apk apk add cgit uwsgi uwsgi-cgi py3-pygments-pyc py3-markdown py3-docutils lzip gzip bzip2 xz zstd
ADD cgit.ini /etc/uwsgi/cgit.ini
RUN mkdir -p /var/run/cgit
RUN adduser -S cgit
RUN adduser -D -S -h /var/lib/cgit -G cgit cgit
RUN chown cgit:cgit /var/run/cgit
WORKDIR /var/lib/cgit
USER cgit
ENTRYPOINT ["/usr/sbin/uwsgi", "--ini", "/etc/uwsgi/cgit.ini"]

10
cgit/cgit.ini Normal file
View File

@@ -0,0 +1,10 @@
[uwsgi]
master = true
plugins = cgi
socket = /var/run/cgit/cgit.sock
uid = cgit
gid = cgit
procname-master = uwsgi cgit
processes = 1
threads = 2
cgi = /usr/share/webapps/cgit/cgit.cgi