mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 08:25:32 +00:00
When running Docker on Windows Docker is not able to properly adjust to the line ending. When it builds the image from a Dockerfile that's checked out with the Windows-style line endings (\r\n), and it runs a command like ```Dockerfile RUN <<EOF cat > /usr/bin/bashwrapper echo "Hello world!" EOF ``` it makes the filename `/usr/bin/bashwrapper\r`! This change works around this problem by always using LF line endings for `resources/docker-images/**/Dockerfile`.
9 lines
244 B
Text
9 lines
244 B
Text
# Always use LF for Dockerfile - otherwise HEREDOCs in Dockerfile
|
|
# will not work on Windows - we end up with a filename `foo\r` for
|
|
# the command
|
|
# ```Dockerfile
|
|
# RUN <<EOF cat > foo
|
|
# echo "Hello world"
|
|
# EOF
|
|
# ```
|
|
Dockerfile text eol=lf
|