浏览代码

Merge pull request #2274 from mnowster/docs-key-dependency-clarification

Clarify `dockerfile` requires `build` key
mnowster 10 年之前
父节点
当前提交
dfaa18ebc5
共有 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.
 
-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
 
 Using `dockerfile` together with `image` is not allowed. Attempting to do so results in an error.