Преглед изворни кода

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

Signed-off-by: Anca Iordache <[email protected]>
Anca Iordache пре 4 година
родитељ
комит
eaa22df151
1 измењених фајлова са 1 додато и 1 уклоњено
  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()