blob: 904712fa96632cbc966ae5c1c2c4dc5edc7f9e46 (
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 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"]
|