File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1549,19 +1549,19 @@ relative to the root of the current build stage.
1549
1549
1550
1550
``` dockerfile
1551
1551
# create /abs/test.txt
1552
- ADD test.txt /abs/
1552
+ COPY test.txt /abs/
1553
1553
```
1554
1554
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 ` .
1557
1557
1558
1558
If the destination path doesn't begin with a leading slash, it's interpreted as
1559
1559
relative to the working directory of the build container.
1560
1560
1561
1561
``` dockerfile
1562
1562
WORKDIR /usr/src/app
1563
1563
# create /usr/src/app/rel/test.txt
1564
- ADD test.txt rel/
1564
+ COPY test.txt rel/
1565
1565
```
1566
1566
1567
1567
If destination doesn't exist, it's created, along with all missing directories
You can’t perform that action at this time.
0 commit comments