-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
35 lines (22 loc) · 1.01 KB
/
Dockerfile
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 phusion/baseimage:18.04-1.0.0
LABEL maintainer="Marco Pompili"
LABEL email="[email protected]"
RUN apt-get -qq update && \
apt-get -qy install gettext-base \
fcgiwrap git cgit highlight \
ca-certificates nginx gettext-base \
markdown python3-markdown python3-docutils groff && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN useradd nginx
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
EXPOSE 80 443
RUN mkdir /srv/git
VOLUME ["/srv/git", "/var/cache/cgit"]
ENV CGIT_TITLE="My cgit interface" CGIT_DESC="Super fast interface to my git repositories" CGIT_VROOT="/" CGIT_SECTION_FROM_STARTPATH=0 CGIT_MAX_REPO_COUNT=50
COPY cgitrc.template /etc/
COPY syntax-highlighting.sh /usr/lib/cgit/filters/
COPY default.conf /etc/nginx/sites-available/default
COPY 404.html /usr/share/nginx/html/
COPY 401.html /usr/share/nginx/html/
COPY 99_start.sh /etc/my_init.d/