~dricottone/container-images

ref: 86834e13c4e225b499700ba57267b6d8caa418ac container-images/srht-git-core/Dockerfile -rw-r--r-- 443 bytes
86834e13Dominic Ricottone MoinMoin 1.9 running in PyPy a day ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM registry.intra.dominic-ricottone.com/srht-core:latest

# user `git` should be created with PID=100:GID=101
RUN addgroup -S git
RUN adduser -SD -h /var/lib/git -s /bin/sh -G git -g git git

VOLUME /var/lib/git
RUN chown git:git /var/lib/git

RUN apk add --no-cache git.sr.ht py3-srht py3-gunicorn

USER git

ENV HOME=/var/lib/git

CMD ["gunicorn", "gitsrht.app:app", "-b", "127.0.0.1:5001", "-c", "/etc/sr.ht/git.sr.ht.gunicorn.conf.py"]