浏览代码

Clarify `dockerfile` requires `build` key

Credit to @funkyfuture for the first PR addressing the clarification.
https://github.com/docker/compose/pull/1767

Signed-off-by: Mazz Mosley <[email protected]>
Mazz Mosley 10 年之前
父节点
当前提交
c341860d11
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      docs/compose-file.md

+ 3 - 1
docs/compose-file.md

@@ -100,8 +100,10 @@ Custom DNS search domains. Can be a single value or a list.
 
 
 Alternate Dockerfile.
 Alternate Dockerfile.
 
 
-Compose will use an alternate file to build with.
+Compose will use an alternate file to build with. A build path must also be
+specified using the `build` key.
 
 
+    build: /path/to/build/dir
     dockerfile: Dockerfile-alternate
     dockerfile: Dockerfile-alternate
 
 
 Using `dockerfile` together with `image` is not allowed. Attempting to do so results in an error.
 Using `dockerfile` together with `image` is not allowed. Attempting to do so results in an error.