diff options
author | Malfurious <m@lfurio.us> | 2024-03-12 04:08:28 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-03-12 04:08:28 -0400 |
commit | 6c233f6dd62176ea9477f0241a8ca8e2fbca80f0 (patch) | |
tree | a09b4134be33d2bb3834bc3a42b46789b8a155b3 /cgit/Dockerfile | |
parent | ae4689915e7997e96c84fbb8c68f3575835895f3 (diff) | |
download | srcnode-6c233f6dd62176ea9477f0241a8ca8e2fbca80f0.tar.gz srcnode-6c233f6dd62176ea9477f0241a8ca8e2fbca80f0.zip |
cgit: Display version numbers in cgit page footer
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
-rw-r--r-- | cgit/Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cgit/Dockerfile b/cgit/Dockerfile index cb76fa9..28891c7 100644 --- a/cgit/Dockerfile +++ b/cgit/Dockerfile @@ -1,6 +1,7 @@ # https://git.zx2c4.com/cgit/ FROM alpine +ARG NORMALMODE_VERSION RUN apk --no-cache upgrade RUN apk --no-cache add apache2 cgit @@ -9,5 +10,7 @@ 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"] |