blob: 28891c70be0d79567a087b0e92d7684be3544062 (
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 NORMALMODE_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/normalmode/
RUN echo "<div class=\"footer\">$(apk version cgit | awk '/cgit/{print $1}') | $NORMALMODE_VERSION</div>" >/footer
EXPOSE 80
CMD ["/usr/sbin/httpd", "-DFOREGROUND"]
|