forked from cirocosta/gitserver-http
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (15 loc) · 741 Bytes
/
Dockerfile
File metadata and controls
22 lines (15 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM nginx:1.17.4-alpine
RUN set -x && \
apk --update upgrade && \
apk add git bash fcgiwrap spawn-fcgi wget git-daemon && \
adduser git -h /var/lib/git -D && \
adduser nginx git && \
git config --system http.receivepack true && \
git config --system http.uploadpack true && \
git config --system user.email "gitserver@git.com" && \
git config --system user.name "Git Server" && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
ADD ./etc /etc
ADD ./entrypoint.sh /usr/local/bin/entrypoint
ENTRYPOINT [ "entrypoint" ]