This commit is contained in:
parent
570787b882
commit
d3aaff75cf
1 changed files with 1 additions and 2 deletions
|
|
@ -120,10 +120,9 @@ COPY --from=builder /app/.bundle /app/.bundle
|
||||||
COPY --from=assets /app/public/assets /app/public/assets
|
COPY --from=assets /app/public/assets /app/public/assets
|
||||||
|
|
||||||
RUN chown -R app:app /app/tmp /app/log /app/storage
|
RUN chown -R app:app /app/tmp /app/log /app/storage
|
||||||
|
RUN date -u +"%Y-%m-%d %H:%M:%s" >> .build_version
|
||||||
|
|
||||||
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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue