mirror of
https://github.com/containers/podman-compose.git
synced 2025-04-11 11:08:47 +02:00
FIXES #10: support "build: ./path/context"
This commit is contained in:
parent
655d5d9b51
commit
3e3fe9cba6
@ -388,6 +388,8 @@ def build(project_name, dirname, pods, containers, dry_run, podman_path):
|
|||||||
for cnt in containers:
|
for cnt in containers:
|
||||||
if 'build' not in cnt: continue
|
if 'build' not in cnt: continue
|
||||||
build_desc = cnt['build']
|
build_desc = cnt['build']
|
||||||
|
if not hasattr(build_desc, 'items'):
|
||||||
|
build_desc = dict(context=build_desc)
|
||||||
ctx = build_desc.get('context', '.')
|
ctx = build_desc.get('context', '.')
|
||||||
dockerfile = os.path.join(ctx, build_desc.get("dockerfile", "Dockerfile"))
|
dockerfile = os.path.join(ctx, build_desc.get("dockerfile", "Dockerfile"))
|
||||||
build_args = [
|
build_args = [
|
||||||
|
Loading…
Reference in New Issue
Block a user