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:
Ulysses Souza 2021-03-11 13:01:07 +01:00 committed by GitHub
commit 5b7851f55b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1855,7 +1855,7 @@ class _CLIBuilder:
Returns: Returns:
A generator for the build output. A generator for the build output.
""" """
if dockerfile: if dockerfile and os.path.isdir(path):
dockerfile = os.path.join(path, dockerfile) dockerfile = os.path.join(path, dockerfile)
iidfile = tempfile.mktemp() iidfile = tempfile.mktemp()