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
1295
1295
in its path.
1296
1296
1297
1297
### 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 ` .
1302
1298
1303
1299
The checksum of a remote file can be verified with the ` --checksum ` flag:
1304
1300
@@ -1310,18 +1306,13 @@ The `--checksum` flag only supports HTTP sources currently.
1310
1306
1311
1307
### Adding a git repository ` ADD <git ref> <dir> `
1312
1308
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
-
1318
1309
This form allows adding a git repository to an image directly, without using the ` git ` command inside the image:
1319
1310
```
1320
1311
ADD [--keep-git-dir=<boolean>] <git ref> <dir>
1321
1312
```
1322
1313
1323
1314
``` dockerfile
1324
- # syntax=docker/dockerfile:1-labs
1315
+ # syntax=docker/dockerfile:1
1325
1316
FROM alpine
1326
1317
ADD --keep-git-dir=true https://github.com/moby/buildkit.git#v0.10.1 /buildkit
1327
1318
```
@@ -1333,7 +1324,7 @@ The `--keep-git-dir=true` flag adds the `.git` directory. This flag defaults to
1333
1324
To add a private repo via SSH, create a Dockerfile with the following form:
1334
1325
1335
1326
``` dockerfile
1336
- # syntax=docker/dockerfile:1-labs
1327
+ # syntax=docker/dockerfile:1
1337
1328
FROM alpine
1338
1329
ADD [email protected] :foo/bar.git /bar
1339
1330
```
You can’t perform that action at this time.
0 commit comments