From b546ee095e15aa53cede7bd226b47e21eb6e193c Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 26 Feb 2026 00:22:55 +0100 Subject: [PATCH] create public/versioninfo on every build --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6079959..54dfeb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -73,6 +73,10 @@ COPY --from=build /rails /rails RUN groupadd --system --gid 1000 rails && \ useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \ chown -R rails:rails db log tmp public + +# Create versioninfo with build timestamp +RUN date +"%Y-%m-%d %H:%M:%S %Z" > public/versioninfo + USER 1000:1000 ENTRYPOINT ["/rails/bin/docker-entrypoint"]