From 8d94a85d62d6945be1217446738d856b3c2e2ddc Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Fri, 22 Jan 2016 08:52:36 -0800 Subject: [PATCH] Add some helper text for magical ADD Closes: #15777 Signed-off-by: Doug Davis --- docs/reference/builder.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/reference/builder.md b/docs/reference/builder.md index 355c5e3767..8d9aeda17a 100644 --- a/docs/reference/builder.md +++ b/docs/reference/builder.md @@ -643,6 +643,14 @@ guide](../articles/dockerfile_best-practices.md#build-cache) for more informatio 2. The contents of the source tree, with conflicts resolved in favor of "2." on a file-by-file basis. + > **Note**: + > Whether a file is identified as a recognized compression format or not + > is done soley based on the contents of the file, not the name of the file. + > For example, if an empty file happens to end with `.tar.gz` this will not + > be recognized as a compressed file and **will not** generate any kind of + > decompression error message, rather the file will simply be copied to the + > destination. + - If `` is any other kind of file, it is copied individually along with its metadata. In this case, if `` ends with a trailing slash `/`, it will be considered a directory and the contents of `` will be written