added cgit image
All checks were successful
CI / Build dyndns docker images (push) Successful in 41s

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

8
cgit/Dockerfile Normal file
View File

@@ -0,0 +1,8 @@
FROM alpine:3.22
ARG VERSION
RUN --mount=type=cache,target=/var/cache/apk apk add cgit uwsgi py3-pygments-pyc py3-markdown py3-docutils lzip gzip bzip2 xz zstd
ADD cgit.ini /etc/uwsgi/cgit.ini
RUN adduser -D -S -h /var/lib/cgit 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/uwsgi/cgit.sock
uid = cgit
gid = cgit
procname-master = uwsgi cgit
processes = 1
threads = 2
cgi = /usr/share/webapps/cgit/cgit.cgi