summaryrefslogtreecommitdiffstats
path: root/cgit/Dockerfile
blob: 0d3ad64852c9ac7f29a4c6738b9352e666559f7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# https://git.zx2c4.com/cgit/

FROM alpine
ARG SRCNODE_VERSION

RUN apk --no-cache upgrade
RUN apk --no-cache add apache2 cgit

COPY httpd.conf /etc/apache2/
COPY cgitrc /etc/
COPY favicon.ico logo.png /usr/share/srcnode/

RUN echo "<div class=\"footer\">$(apk version cgit | awk '/cgit/{print $1}') | $SRCNODE_VERSION</div>" >/footer

EXPOSE 80
CMD ["/usr/sbin/httpd", "-DFOREGROUND"]