Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #89 from bap14/bug/72-dashboard-shows-wrong-version
Browse files Browse the repository at this point in the history
Make version pull from build context
  • Loading branch information
navarr authored Oct 6, 2022
2 parents ff22025 + 8ed54b4 commit 41e6f5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion docker/dashboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
ARG DEN_VERSION="main (development)"

FROM nginx:alpine
ARG DEN_VERSION

ENV DEN_VERSION=${DEN_VERSION}

ADD index.html /usr/share/nginx/html/index.html
ADD img/Dnsmasq_icon.svg /usr/share/nginx/html/img/Dnsmasq_icon.svg
ADD img/Dnsmasq_icon.svg /usr/share/nginx/html/img/Dnsmasq_icon.svg

RUN sed -ie "s/{{DEN_VERSION}}/${DEN_VERSION}/g" /usr/share/nginx/html/index.html
4 changes: 2 additions & 2 deletions docker/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
</div><br>
by Swiftotter<br>
fork of Warden by David Alger<br>
v.in-dev<br>
v.{{DEN_VERSION}}<br>
<a href="https://github.com/swiftotter/den/releases">Check for Updates</a>
</header>
<ul class="services-list">
Expand All @@ -92,4 +92,4 @@
<li class="dnsmasq"><a href="https://dnsmasq.den.test/">DNSMasq</a></li>
</ul>
</body>
</html>
</html>

0 comments on commit 41e6f5e

Please sign in to comment.