浏览代码

Merge pull request #8188 from aiordache/build_context

Do not use context as base dir for Dockerfile when context is a git url
Ulysses Souza 4 年之前
父节点
当前提交
5b7851f55b
共有 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()