Docker build fails with npm error

Problem: after git cloning theforman/forman and running docker build . it fails with
executor failed running /bin/sh/ -c npm install --no-optional && ./node_modules/webpack/bin/webpack.js

bundle install --without “$BUNDLER_SKIPPED_GROUPS}” assets]: exit code: 1

Expected outcome: docker container is build

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

built using windows docker (sits on hyper-v)

also says higher up in the stack

Failed at the TheForemanDevDeps@3.3.0 postinstallscript
This is probably not a problem with npm. There is likely aditional logging output above.

higher up

/usr/bin/env: ‘node\r’: No such file or directory

This seems to be windows docker specific, if you trace it far enough it has the wrong end of line for DOS. Built fine on my mac.