moby--moby/builder/dockerfile
Yong Tang 678c80f925 Skip UTF-8 BOM bytes from Dockerfile if exists
This fix tries to address issues in #23221 where Dockerfile
may consists of UTF-8 BOM. This likely happens when Notepad
tries to save a file as UTF-8 in Windows.

This fix skips the UTF-8 BOM bytes from the beginning of the
Dockerfile if exists.

Additional tests has been added to cover the changes in this
fix.

This fix fixes #23221.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-06-03 06:16:50 -07:00
..
command Add support for user-defined healthchecks 2016-06-02 23:58:34 +02:00
parser Skip UTF-8 BOM bytes from Dockerfile if exists 2016-06-03 06:16:50 -07:00
bflag.go
bflag_test.go
builder.go Add support for user-defined healthchecks 2016-06-02 23:58:34 +02:00
dispatchers.go Add support for user-defined healthchecks 2016-06-02 23:58:34 +02:00
dispatchers_unix.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
dispatchers_windows.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
dispatchers_windows_test.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
envVarTest
evaluator.go Add support for user-defined healthchecks 2016-06-02 23:58:34 +02:00
evaluator_test.go Typo fix wiildcard -> wildcard 2016-05-22 18:39:35 +01:00
evaluator_unix.go
evaluator_windows.go
internals.go Reimplementing more builder integration tests as unit tests 2016-05-22 01:00:57 +02:00
internals_test.go Reimplementing more builder integration tests as unit tests 2016-05-22 01:00:57 +02:00
internals_unix.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
internals_windows.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
internals_windows_test.go Windows: Reduce CLI time, move some to unit tests 2016-05-06 12:26:08 -07:00
shell_parser.go
shell_parser_test.go
support.go
support_test.go
wordsTest