mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
Do not use context as base dir for Dockerfile when context is a git url
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
parent
d0b7bc3110
commit
eaa22df151
@ -1855,7 +1855,7 @@ class _CLIBuilder:
|
||||
Returns:
|
||||
A generator for the build output.
|
||||
"""
|
||||
if dockerfile:
|
||||
if dockerfile and os.path.isdir(path):
|
||||
dockerfile = os.path.join(path, dockerfile)
|
||||
iidfile = tempfile.mktemp()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user