TL;DR: Use dos2unix
While switching from Ubuntu to Alpine images, I've encountered the fillowing error:
standard_init_linux.go:195: exec user process caused "no such file or directory"
Quite unfortunate, because the script stayed in the same spot and only the image changed. After