add build version
All checks were successful
/ Checkout (push) Successful in 42s

This commit is contained in:
david 2024-07-22 04:58:16 +02:00
parent 570787b882
commit d3aaff75cf

View file

@ -120,10 +120,9 @@ COPY --from=builder /app/.bundle /app/.bundle
COPY --from=assets /app/public/assets /app/public/assets
RUN chown -R app:app /app/tmp /app/log /app/storage
RUN date -u +"%Y-%m-%d %H:%M:%s" >> .build_version
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