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 Fix typos found across repository 2015-12-13 18:04:12 +02:00
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 Allow for env vars to have spaces in some cases 2015-11-09 12:42:56 -08:00
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 Enabling expose support for Windows TP5 2016-03-30 17:25:41 -07:00
evaluator_windows.go Windows: Support ARG in builder 2016-05-04 14:32:23 -07:00
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 Allow for env vars to have spaces in some cases 2015-11-09 12:42:56 -08:00
shell_parser_test.go Allow for env vars to have spaces in some cases 2015-11-09 12:42:56 -08:00
support.go Unit tests for builder/dockerfile/support 2016-04-16 00:19:58 +02:00
support_test.go Unit tests for builder/dockerfile/support 2016-04-16 00:19:58 +02:00
wordsTest Allow for env vars to have spaces in some cases 2015-11-09 12:42:56 -08:00