@@ -1237,7 +1237,7 @@ The available `[OPTIONS]` are:
1237
1237
| [ ` --chown ` ] ( #add---chown---chmod ) | |
1238
1238
| [ ` --chmod ` ] ( #add---chown---chmod ) | 1.2 |
1239
1239
| [ ` --link ` ] ( #add---link ) | 1.4 |
1240
- | [ ` --exclude ` ] ( #add---exclude ) | 1.7 |
1240
+ | [ ` --exclude ` ] ( #add---exclude ) | 1.7-labs |
1241
1241
1242
1242
The ` ADD ` instruction copies new files or directories from ` <src> ` and adds
1243
1243
them to the filesystem of the image at the path ` <dest> ` . Files and directories
@@ -1522,8 +1522,8 @@ The available `[OPTIONS]` are:
1522
1522
| [ ` --chown ` ] ( #copy---chown---chmod ) | |
1523
1523
| [ ` --chmod ` ] ( #copy---chown---chmod ) | 1.2 |
1524
1524
| [ ` --link ` ] ( #copy---link ) | 1.4 |
1525
- | [ ` --parents ` ] ( #copy---parents ) | 1.7 |
1526
- | [ ` --exclude ` ] ( #copy---exclude ) | 1.7 |
1525
+ | [ ` --parents ` ] ( #copy---parents ) | 1.7-labs |
1526
+ | [ ` --exclude ` ] ( #copy---exclude ) | 1.7-labs |
1527
1527
1528
1528
The ` COPY ` instruction copies new files or directories from ` <src> ` and adds
1529
1529
them to the filesystem of the image at the path ` <dest> ` . Files and directories
@@ -1820,7 +1820,7 @@ COPY [--parents[=<boolean>]] <src> ... <dest>
1820
1820
The ` --parents ` flag preserves parent directories for ` src ` entries. This flag defaults to ` false ` .
1821
1821
1822
1822
``` dockerfile
1823
- # syntax=docker/dockerfile:1.7 -labs
1823
+ # syntax=docker/dockerfile:1-labs
1824
1824
FROM scratch
1825
1825
1826
1826
COPY ./x/a.txt ./y/a.txt /no_parents/
@@ -1840,7 +1840,7 @@ directories after it will be preserved. This may be especially useful copies bet
1840
1840
with ` --from ` where the source paths need to be absolute.
1841
1841
1842
1842
``` dockerfile
1843
- # syntax=docker/dockerfile:1.7 -labs
1843
+ # syntax=docker/dockerfile:1-labs
1844
1844
FROM scratch
1845
1845
1846
1846
COPY --parents ./x/./y/*.txt /parents/
@@ -1882,6 +1882,9 @@ supporting wildcards and matching using Go's
1882
1882
For example, to add all files starting with "hom", excluding files with a ` .txt ` extension:
1883
1883
1884
1884
``` dockerfile
1885
+ # syntax=docker/dockerfile:1-labs
1886
+ FROM scratch
1887
+
1885
1888
COPY --exclude=*.txt hom* /mydir/
1886
1889
```
1887
1890
@@ -1891,6 +1894,9 @@ even if the files paths match the pattern specified in `<src>`.
1891
1894
To add all files starting with "hom", excluding files with either ` .txt ` or ` .md ` extensions:
1892
1895
1893
1896
``` dockerfile
1897
+ # syntax=docker/dockerfile:1-labs
1898
+ FROM scratch
1899
+
1894
1900
COPY --exclude=*.txt --exclude=*.md hom* /mydir/
1895
1901
```
1896
1902
0 commit comments