add build version
Some checks failed
/ Checkout (push) Failing after 47s

This commit is contained in:
david 2024-07-22 04:55:30 +02:00
parent c70fdb555d
commit 570787b882
3 changed files with 4 additions and 1 deletions

0
.build_version Normal file
View file

View file

@ -125,3 +125,5 @@ USER app
# Using variables in command list is not possible:
# https://stackoverflow.com/questions/40454470/how-can-i-use-a-variable-inside-a-dockerfile-cmd
CMD [ "rails", "server", "--binding", "0.0.0.0", "--no-daemon", "--port" , "3000" ]
RUN date -u +"%Y-%m-%d %H:%M:%s" >> .build_version

View file

@ -18,5 +18,6 @@
<main class="mt-3 container">
<%= yield %>
</main>
<footer class="mt-3">Version: <%= l(File.mtime(Rails.root.join(".build_version")), format: :short) %>
</body>
</html>