create public/versioninfo on every build
This commit is contained in:
parent
ab915419ae
commit
b546ee095e
1 changed files with 4 additions and 0 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue