summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: ace7e5b97bdf616b865ba1897e4132d0d2edd3e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 cgitrc /etc/

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