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
|
|
@ -124,4 +124,6 @@ RUN chown -R app:app /app/tmp /app/log /app/storage
|
||||||
USER app
|
USER app
|
||||||
# Using variables in command list is not possible:
|
# Using variables in command list is not possible:
|
||||||
# https://stackoverflow.com/questions/40454470/how-can-i-use-a-variable-inside-a-dockerfile-cmd
|
# 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" ]
|
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">
|
<main class="mt-3 container">
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</main>
|
</main>
|
||||||
|
<footer class="mt-3">Version: <%= l(File.mtime(Rails.root.join(".build_version")), format: :short) %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue