blob: bd8589ed83a394b7577a76d759fd701e65f3e543 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
FROM alpine:3.5 AS builder
RUN apk add --no-cache sassc
ADD cgit/cgit.sass /app/
RUN sassc -t compressed /app/cgit.sass /app/cgit.css
FROM server_runit AS final
RUN apk add --no-cache sudo shadow \
git gitolite git-daemon \
openssh openssh-client \
cgit highlight markdown \
nginx spawn-fcgi fcgiwrap
# gitolite
RUN mkdir -p /data /data/log
RUN echo 'git:*' | chpasswd
RUN usermod --home /data/git --move-home git
ADD gitolite/ /app/
RUN ln -s /app/gitolite.rc /data/git/.gitolite.rc
RUN chown -R git:git /app/gitolite.rc /data/log /data/git
RUN sudo -u git GL_LOGFILE=/data/log/gitolite gitolite setup -pk /app/admin.pub
ADD gitolite/sshd_config /etc/ssh/
ADD gitolite/generate_certs.sh /app/
# cgit
ADD cgit/cgitrc /etc/
ADD cgit/syntax-highlighting3.sh /app/
ADD cgit/about-formatting.sh /app/
COPY --from=builder /app/cgit.css /usr/share/webapps/cgit/cgit.css
ADD nginx/nginx.conf /etc/nginx/nginx.conf
|