소스 검색

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