Skip to content

Commit

Permalink
fix: add build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
orisano committed Aug 28, 2019
1 parent a61d349 commit 8e1a715
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compose/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1778,12 +1778,15 @@ def build(self, 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("--progress", self._progress)
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])

Expand Down

0 comments on commit 8e1a715

Please sign in to comment.