Skip to content

Commit

Permalink
Print full dockerfile path instead of context on error
Browse files Browse the repository at this point in the history
... if the dockerfile is not found.

Signed-off-by: Siteshwar Vashisht <[email protected]>
  • Loading branch information
siteshwar committed Nov 2, 2023
1 parent bce40c2 commit 3c3829d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -2120,7 +2120,7 @@ def build_one(compose, args, cnt):
if os.path.exists(dockerfile):
break
if not os.path.exists(dockerfile):
raise OSError("Dockerfile not found in " + ctx)
raise OSError("Dockerfile not found in " + dockerfile)
build_args = ["-f", dockerfile, "-t", cnt["image"]]
for secret in build_desc.get("secrets", []):
build_args.extend(get_secret_args(compose, cnt, secret))
Expand Down

0 comments on commit 3c3829d

Please sign in to comment.