Add integration test and docs for build with a git url.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
0dbd99bad2
commit
69e956ce8b
4 changed files with 31 additions and 6 deletions
|
|
@ -31,15 +31,18 @@ definition.
|
|||
|
||||
### build
|
||||
|
||||
Path to a directory containing a Dockerfile. When the value supplied is a
|
||||
relative path, it is interpreted as relative to the location of the yml file
|
||||
itself. This directory is also the build context that is sent to the Docker daemon.
|
||||
Either a path to a directory containing a Dockerfile, or a url to a git repository.
|
||||
|
||||
When the value supplied is a relative path, it is interpreted as relative to the
|
||||
location of the Compose file. This directory is also the build context that is
|
||||
sent to the Docker daemon.
|
||||
|
||||
Compose will build and tag it with a generated name, and use that image thereafter.
|
||||
|
||||
build: /path/to/build/dir
|
||||
|
||||
Using `build` together with `image` is not allowed. Attempting to do so results in an error.
|
||||
Using `build` together with `image` is not allowed. Attempting to do so results in
|
||||
an error.
|
||||
|
||||
### cap_add, cap_drop
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue