Skip to content

Commit

Permalink
Merge pull request #5275 from dvdksn/dockerfile-flag-versions
Browse files Browse the repository at this point in the history
docs: add min dockerfile version for flags
  • Loading branch information
crazy-max committed Sep 2, 2024
2 parents 8c237af + 8487cb4 commit d0597a3
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions frontend/dockerfile/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,11 @@ EOF

The available `[OPTIONS]` for the `RUN` instruction are:

- [`--mount`](#run---mount)
- [`--network`](#run---network)
- [`--security`](#run---security)
| Option | Minimum Dockerfile version |
| ------------------------------- | -------------------------- |
| [`--mount`](#run---mount) | 1.2 |
| [`--network`](#run---network) | 1.3 |
| [`--security`](#run---security) | 1.1.2-labs |

### Cache invalidation for RUN instructions

Expand Down Expand Up @@ -1150,12 +1152,14 @@ ADD [OPTIONS] ["<src>", ... "<dest>"]
The available `[OPTIONS]` are:

- [`--keep-git-dir`](#add---keep-git-dir)
- [`--checksum`](#add---checksum)
- [`--chown`](#add---chown---chmod)
- [`--chmod`](#add---chown---chmod)
- [`--link`](#add---link)
- [`--exclude`](#add---exclude)
| Option | Minimum Dockerfile version |
| --------------------------------------- | -------------------------- |
| [`--keep-git-dir`](#add---keep-git-dir) | 1.1 |
| [`--checksum`](#add---checksum) | 1.6 |
| [`--chown`](#add---chown---chmod) | |
| [`--chmod`](#add---chown---chmod) | 1.2 |
| [`--link`](#add---link) | 1.4 |
| [`--exclude`](#add---exclude) | 1.7 |

The `ADD` instruction copies new files or directories from `<src>` and adds
them to the filesystem of the image at the path `<dest>`. Files and directories
Expand Down Expand Up @@ -1434,12 +1438,14 @@ COPY [OPTIONS] ["<src>", ... "<dest>"]

The available `[OPTIONS]` are:

- [`--from`](#copy---from)
- [`--chown`](#copy---chown---chmod)
- [`--chmod`](#copy---chown---chmod)
- [`--link`](#copy---link)
- [`--parents`](#copy---parents)
- [`--exclude`](#copy---exclude)
| Option | Minimum Dockerfile version |
| ---------------------------------- | -------------------------- |
| [`--from`](#copy---from) | |
| [`--chown`](#copy---chown---chmod) | |
| [`--chmod`](#copy---chown---chmod) | 1.2 |
| [`--link`](#copy---link) | 1.4 |
| [`--parents`](#copy---parents) | 1.7 |
| [`--exclude`](#copy---exclude) | 1.7 |

The `COPY` instruction copies new files or directories from `<src>` and adds
them to the filesystem of the image at the path `<dest>`. Files and directories
Expand Down

0 comments on commit d0597a3

Please sign in to comment.