This commit is contained in:
parent
c70fdb555d
commit
570787b882
3 changed files with 4 additions and 1 deletions
0
.build_version
Normal file
0
.build_version
Normal 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
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue