Issue
I tried running the app on Mac using the provided Docker instructions:
# git clone and cd to repo directory
docker build -t hmm .
docker run --rm -it -v $(pwd):/app/ -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY hmm
I got the following error and the app failed to launch:
env: 'php\r': No such file or directory
env: use -[v]S to pass options in shebang lines
Workaround
I think this issue is due to Windows line endings (\r) being committed to the repo. These steps worked for me to address the issue locally:
brew install dos2unix
find . -type f -exec dos2unix {} \;
# run docker run as usual
This could be addressed on a project level by adding .gitattributes.
Issue
I tried running the app on Mac using the provided Docker instructions:
I got the following error and the app failed to launch:
Workaround
I think this issue is due to Windows line endings (
\r) being committed to the repo. These steps worked for me to address the issue locally:This could be addressed on a project level by adding
.gitattributes.