mirror of
https://github.com/containers/podman-compose.git
synced 2025-03-31 11:18:12 +02: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"],
|
"build", "-t", cnt["image"],
|
||||||
"-f", dockerfile
|
"-f", dockerfile
|
||||||
]
|
]
|
||||||
|
if "target" in build_desc:
|
||||||
|
build_args.extend(["--target", build_desc.get("target")])
|
||||||
container_to_ulimit_args(cnt, build_args)
|
container_to_ulimit_args(cnt, build_args)
|
||||||
if getattr(args, 'pull_always', None): build_args.append("--pull-always")
|
if getattr(args, 'pull_always', None): build_args.append("--pull-always")
|
||||||
elif getattr(args, 'pull', None): build_args.append("--pull")
|
elif getattr(args, 'pull', None): build_args.append("--pull")
|
||||||
|
Loading…
Reference in New Issue
Block a user