summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 27098a03f6ef8f53a9dd9ec48958aedd9e1a4c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM debian:stretch
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -qy auto-apt-proxy && apt-get install -qy git cgit apache2 apache2-utils pandoc
RUN a2enmod cgi alias env
RUN truncate --size 0 /etc/apache2/ports.conf
RUN a2disconf cgit other-vhosts-access-log serve-cgi-bin
RUN sed -i -e '/^ErrorLog/d' /etc/apache2/apache2.conf

COPY gitserver.conf /etc/apache2/sites-available/000-default.conf
COPY gitserver /usr/local/bin/gitserver
COPY addrepo /usr/local/bin/addrepo
COPY pandoc-filter /usr/local/bin/pandoc-filter
COPY cgitrc /etc/

USER www-data
CMD /usr/local/bin/gitserver