File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -1295,10 +1295,6 @@ guide – Leverage build cache](https://docs.docker.com/develop/develop-images/d
12951295 in its path.
12961296
12971297### Verifying a remote file checksum ` ADD --checksum=<checksum> <http src> <dest> `
1298- > ** Note**
1299- >
1300- > Not yet available in stable syntax, use [ ` docker/dockerfile:1-labs ` ] ( #syntax ) version (` 1.5-labs ` or newer).
1301- > Planned to be included in ` docker/dockerfile:1.6 ` .
13021298
13031299The checksum of a remote file can be verified with the ` --checksum ` flag:
13041300
@@ -1310,18 +1306,13 @@ The `--checksum` flag only supports HTTP sources currently.
13101306
13111307### Adding a git repository ` ADD <git ref> <dir> `
13121308
1313- > ** Note**
1314- >
1315- > Not yet available in stable syntax, use [ ` docker/dockerfile:1-labs ` ] ( #syntax ) version (` 1.5-labs ` or newer).
1316- > Planned to be included in ` docker/dockerfile:1.6 ` .
1317-
13181309This form allows adding a git repository to an image directly, without using the ` git ` command inside the image:
13191310```
13201311ADD [--keep-git-dir=<boolean>] <git ref> <dir>
13211312```
13221313
13231314``` dockerfile
1324- # syntax=docker/dockerfile:1-labs
1315+ # syntax=docker/dockerfile:1
13251316FROM alpine
13261317ADD --keep-git-dir=true https://github.com/moby/buildkit.git#v0.10.1 /buildkit
13271318```
@@ -1333,7 +1324,7 @@ The `--keep-git-dir=true` flag adds the `.git` directory. This flag defaults to
13331324To add a private repo via SSH, create a Dockerfile with the following form:
13341325
13351326``` dockerfile
1336- # syntax=docker/dockerfile:1-labs
1327+ # syntax=docker/dockerfile:1
13371328FROM alpine
13381329ADD git@git.example.com:foo/bar.git /bar
13391330```
You can’t perform that action at this time.
0 commit comments