From 862a13b8f3f9eceadef80d47a671247d7ba63669 Mon Sep 17 00:00:00 2001 From: Nao YONASHIRO Date: Sun, 25 Aug 2019 21:04:44 +0900 Subject: [PATCH] fix: add build flags Signed-off-by: Nao YONASHIRO --- compose/service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compose/service.py b/compose/service.py index 9457bfd2b..4688d6c1d 100644 --- a/compose/service.py +++ b/compose/service.py @@ -1774,11 +1774,14 @@ def cli_build(path, tag=None, quiet=False, fileobj=None, command_builder = _CommandBuilder() command_builder.add_params("--build-arg", buildargs) + command_builder.add_list("--cache-from", cache_from) command_builder.add_arg("--file", dockerfile) command_builder.add_flag("--force-rm", forcerm) command_builder.add_arg("--memory", container_limits.get("memory")) command_builder.add_flag("--no-cache", nocache) command_builder.add_flag("--pull", pull) + command_builder.add_arg("--tag", tag) + command_builder.add_arg("--target", target) command_builder.add_arg("--iidfile", iidfile) args = command_builder.build([path])