Skip to content

Commit faf4760

Browse files
committed
docs: update syntax for labs channel in examples
The dockerfile:1-labs frontend is now updated to 1.5-labs, which includes this feature Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent d082c9b commit faf4760

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,17 +1323,19 @@ ADD [--keep-git-dir=<boolean>] <git ref> <dir>
13231323
```
13241324

13251325
```dockerfile
1326-
# syntax=docker/dockerfile-upstream:master-labs
1326+
# syntax=docker/dockerfile:1-labs
13271327
FROM alpine
13281328
ADD --keep-git-dir=true https://github.com/moby/buildkit.git#v0.10.1 /buildkit
13291329
```
13301330

13311331
The `--keep-git-dir=true` flag adds the `.git` directory. This flag defaults to false.
13321332

13331333
### Adding a private git repository
1334+
13341335
To add a private repo via SSH, create a Dockerfile with the following form:
1336+
13351337
```dockerfile
1336-
# syntax = docker/dockerfile-upstream:master-labs
1338+
# syntax=docker/dockerfile:1-labs
13371339
FROM alpine
13381340
ADD [email protected]:foo/bar.git /bar
13391341
```

0 commit comments

Comments
 (0)