Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit efe3cf2

Browse files
eyherabhthaJeztah
authored andcommitted
Replaces ADD with COPY in the COPY section
Possibly a typo from reusing text from the ADD section. Signed-off-by: Hugo Gabriel Eyherabide <hugogabriel.eyherabide@gmail.com> (cherry picked from commit 86cbe28510ad7cc91694fec520ad8c33f7cd844f) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 5c5486d910a6f2a5e013970d715cd77b92ad821c Component: cli
1 parent a438db9 commit efe3cf2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/cli/docs/reference/builder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,11 +1276,11 @@ COPY test.txt /absoluteDir/
12761276
12771277
When copying files or directories that contain special characters (such as `[`
12781278
and `]`), you need to escape those paths following the Golang rules to prevent
1279-
them from being treated as a matching pattern. For example, to add a file
1279+
them from being treated as a matching pattern. For example, to copy a file
12801280
named `arr[0].txt`, use the following;
12811281
12821282
```dockerfile
1283-
ADD arr[[]0].txt /mydir/
1283+
COPY arr[[]0].txt /mydir/
12841284
```
12851285
12861286
All new files and directories are created with a UID and GID of 0, unless the

0 commit comments

Comments
 (0)