mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-22 16:03:16 +01:00
Pass "target" parameter when building an image.
This commit is contained in:
parent
f9915c47b4
commit
7b40079c06
@ -1067,6 +1067,8 @@ def build_one(compose, args, cnt):
|
||||
"build", "-t", cnt["image"],
|
||||
"-f", dockerfile
|
||||
]
|
||||
if "target" in build_desc:
|
||||
build_args.extend(["--target", build_desc.get("target")])
|
||||
container_to_ulimit_args(cnt, build_args)
|
||||
if getattr(args, 'pull_always', None): build_args.append("--pull-always")
|
||||
elif getattr(args, 'pull', None): build_args.append("--pull")
|
||||
|
Loading…
Reference in New Issue
Block a user