Normally in a docker compose file you have
volumes:
- ./:/app
And you mount all files into the container. I need to mount all except one particular file that I want to only Copy over in the Dockerfile. I have to convert the line endings from windows to linux but if I mount my local directory over then it overwrites this and causes issues.
Error
/usr/bin/env: 'bash\r': No such file or directory
Which I am using dos2unix to convert in the Dockerfile.