mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
Merge pull request #8188 from aiordache/build_context
Do not use context as base dir for Dockerfile when context is a git url
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user