Skip to content

Commit ee60803

Browse files
committed
fix: add build flags
1 parent dc17a02 commit ee60803

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compose/service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,11 +1774,14 @@ def cli_build(path, tag=None, quiet=False, fileobj=None,
17741774

17751775
command_builder = _CommandBuilder()
17761776
command_builder.add_params("--build-arg", buildargs)
1777+
command_builder.add_list("--cache-from", cache_from)
17771778
command_builder.add_arg("--file", dockerfile)
17781779
command_builder.add_flag("--force-rm", forcerm)
17791780
command_builder.add_arg("--memory", container_limits.get("memory"))
17801781
command_builder.add_flag("--no-cache", nocache)
17811782
command_builder.add_flag("--pull", pull)
1783+
command_builder.add_arg("--tag", tag)
1784+
command_builder.add_arg("--target", target)
17821785
command_builder.add_arg("--iidfile", iidfile)
17831786
args = command_builder.build([path])
17841787

0 commit comments

Comments
 (0)