=> ERROR [build 6/6] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile 0.5s
------
> [build 6/6] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile:
0.457 /usr/bin/env: ‘ruby\r’: No such file or directory
0.457 /usr/bin/env: use -[v]S to pass options in shebang lines
WARNING: current commit information was not captured by the build: failed to read current commit information with git rev-parse --is-inside-work-tree
2 warnings found (use docker --debug to expand):
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 5)
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 18)
Dockerfile:37
--------------------
35 |
36 | # Precompiling assets for production without requiring secret RAILS_MASTER_KEY
37 | >>> RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
38 |
39 |
--------------------
ERROR: failed to solve: process "/bin/sh -c SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile" did not complete successfully: exit code: 127