create public/versioninfo on every build

This commit is contained in:
Christoph Haas 2026-02-26 00:22:55 +01:00
parent ab915419ae
commit b546ee095e

View file

@ -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"]