Rails app - problem with node_modules when deploying

I am facing the same issue.
One thing I noticed tho is that node_modules is put in .dockerignore file.
So probably a stupid question, but maybe that is affecting the deploy to fail?