spree / spree_starter

@spree application starter template
https://spreecommerce.org
BSD 3-Clause "New" or "Revised" License
361 stars 177 forks source link

Docker still not building image #1136

Open Gursehaj opened 1 month ago

Gursehaj commented 1 month ago
 => 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 
Gursehaj commented 1 month ago

The issue was with line ending in windows. Fixed it.