mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-22 07:53:16 +01: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:
|
||||
if 'build' not in cnt: continue
|
||||
build_desc = cnt['build']
|
||||
if not hasattr(build_desc, 'items'):
|
||||
build_desc = dict(context=build_desc)
|
||||
ctx = build_desc.get('context', '.')
|
||||
dockerfile = os.path.join(ctx, build_desc.get("dockerfile", "Dockerfile"))
|
||||
build_args = [
|
||||
|
Loading…
Reference in New Issue
Block a user