forked from anyakichi/docker-git-http
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
23 lines (16 loc) · 751 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM nginx:alpine
RUN set -x && \
apk --update upgrade && \
apk add git bash fcgiwrap spawn-fcgi wget && \
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" ]
CMD [ "-start" ]