Explorar o código

Do not use context as base dir for Dockerfile when context is a git url

Signed-off-by: Anca Iordache <[email protected]>
Anca Iordache %!s(int64=4) %!d(string=hai) anos
pai
achega
eaa22df151
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compose/service.py

+ 1 - 1
compose/service.py

@@ -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()