From 1ba03f1a34e4fef6b88eb97c3bad7fe879053995 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Tue, 27 Feb 2018 16:11:01 -0800 Subject: [PATCH] Add build target to v3 reference (#6107) --- compose/compose-file/compose-file-v2.md | 1 - compose/compose-file/index.md | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/compose/compose-file/compose-file-v2.md b/compose/compose-file/compose-file-v2.md index 8b842c0399..94e226f762 100644 --- a/compose/compose-file/compose-file-v2.md +++ b/compose/compose-file/compose-file-v2.md @@ -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. diff --git a/compose/compose-file/index.md b/compose/compose-file/index.md index 08b5adb915..11e467776a 100644 --- a/compose/compose-file/index.md +++ b/compose/compose-file/index.md @@ -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.