mirror of https://github.com/docker/docs.git
Add build target to v3 reference (#6107)
This commit is contained in:
parent
2657f16c88
commit
1ba03f1a34
|
@ -270,7 +270,6 @@ a [byte value](#specifying-byte-values).
|
||||||
|
|
||||||
> Added in [version 2.3](compose-versioning.md#version-23) file format
|
> Added in [version 2.3](compose-versioning.md#version-23) file format
|
||||||
|
|
||||||
|
|
||||||
Build the specified stage as defined inside the `Dockerfile`. See the
|
Build the specified stage as defined inside the `Dockerfile`. See the
|
||||||
[multi-stage build docs](/engine/userguide/eng-image/multistage-build.md) for
|
[multi-stage build docs](/engine/userguide/eng-image/multistage-build.md) for
|
||||||
details.
|
details.
|
||||||
|
|
|
@ -331,6 +331,18 @@ a [byte value](#specifying-byte-values).
|
||||||
context: .
|
context: .
|
||||||
shm_size: 10000000
|
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
|
### cap_add, cap_drop
|
||||||
|
|
||||||
Add or drop container capabilities.
|
Add or drop container capabilities.
|
||||||
|
|
Loading…
Reference in New Issue