Linux Style Line Feeds in Docker Desktop on Windows

Recently I was creating a new image using a dockerfile and encountered a very strange error during the build: ./my-script.sh: 1: ./my-script.sh: Syntax error: word unexpected The cause of this wasn't obvious and it took me a little bit to understand what was happening. It turned out to be a line ending compatibility issue between … Continue reading Linux Style Line Feeds in Docker Desktop on Windows