Skip to content

Commit 24d04a7

Browse files
authored
Merge pull request moby#5259 from dvdksn/s_add_copy
docs: fix instruction name (s/ADD/COPY/)
2 parents b04830b + 7f80dbd commit 24d04a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,19 +1549,19 @@ relative to the root of the current build stage.
15491549

15501550
```dockerfile
15511551
# create /abs/test.txt
1552-
ADD test.txt /abs/
1552+
COPY test.txt /abs/
15531553
```
15541554

1555-
Trailing slashes are significant. For example, `ADD test.txt /abs` creates a
1556-
file at `/abs`, whereas `ADD test.txt /abs/` creates `/abs/test.txt`.
1555+
Trailing slashes are significant. For example, `COPY test.txt /abs` creates a
1556+
file at `/abs`, whereas `COPY test.txt /abs/` creates `/abs/test.txt`.
15571557

15581558
If the destination path doesn't begin with a leading slash, it's interpreted as
15591559
relative to the working directory of the build container.
15601560

15611561
```dockerfile
15621562
WORKDIR /usr/src/app
15631563
# create /usr/src/app/rel/test.txt
1564-
ADD test.txt rel/
1564+
COPY test.txt rel/
15651565
```
15661566

15671567
If destination doesn't exist, it's created, along with all missing directories

0 commit comments

Comments
 (0)