Add build target to v3 reference (#6107)

This commit is contained in:
Joffrey F 2018-02-27 16:11:01 -08:00 committed by Gwendolynne Barr
parent 2657f16c88
commit 1ba03f1a34
2 changed files with 12 additions and 1 deletions

View File

@ -270,7 +270,6 @@ a [byte value](#specifying-byte-values).
> Added in [version 2.3](compose-versioning.md#version-23) file format
Build the specified stage as defined inside the `Dockerfile`. See the
[multi-stage build docs](/engine/userguide/eng-image/multistage-build.md) for
details.

View File

@ -331,6 +331,18 @@ a [byte value](#specifying-byte-values).
context: .
shm_size: 10000000
#### target
> Added in [version 3.4](compose-versioning.md#version-34) file format
Build the specified stage as defined inside the `Dockerfile`. See the
[multi-stage build docs](/engine/userguide/eng-image/multistage-build.md) for
details.
build:
context: .
target: prod
### cap_add, cap_drop
Add or drop container capabilities.