~dricottone/container-images

ref: bea5baf47cb3d3cbac3ddffe32e35d334650a101 container-images/srht-git-core/Dockerfile -rw-r--r-- 443 bytes
bea5baf4Dominic Ricottone sr.ht 1 year, 5 months 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"]