瀏覽代碼

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