@@ -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
@@ -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,7 +1882,7 @@ 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.7 -labs
1885
+ # syntax=docker/dockerfile:1-labs
1886
1886
FROM scratch
1887
1887
1888
1888
COPY --exclude=*.txt hom* /mydir/
@@ -1894,7 +1894,7 @@ even if the files paths match the pattern specified in `<src>`.
1894
1894
To add all files starting with "hom", excluding files with either ` .txt ` or ` .md ` extensions:
1895
1895
1896
1896
``` dockerfile
1897
- # syntax=docker/dockerfile:1.7 -labs
1897
+ # syntax=docker/dockerfile:1-labs
1898
1898
FROM scratch
1899
1899
1900
1900
COPY --exclude=*.txt --exclude=*.md hom* /mydir/
0 commit comments