Browse code

Update documentation for docker build

Guillaume J. Charmes authored on 2013/06/07 08:48:36
Showing 3 changed files
... ...
@@ -871,6 +871,7 @@ Build an image from Dockerfile via stdin
871 871
 	   {{ STREAM }}
872 872
 
873 873
 	:query t: tag to be applied to the resulting image in case of success
874
+	:query remote: URL to be fetch. Either a single Dockerfile or a Git repository
874 875
 	:statuscode 200: no error
875 876
         :statuscode 500: server error
876 877
 
... ...
@@ -8,9 +8,11 @@
8 8
 
9 9
 ::
10 10
 
11
-    Usage: docker build [OPTIONS] PATH | -
11
+    Usage: docker build [OPTIONS] PATH | URL | -
12 12
     Build a new container image from the source code at PATH
13 13
       -t="": Tag to be applied to the resulting image in case of success.
14
+    When a single Dockerfile is given as URL, then no context is set. When a git reppository is set as URL, the repository is used as context
15
+
14 16
 
15 17
 Examples
16 18
 --------
... ...
@@ -132,6 +132,8 @@ curl was installed within the image.
132 132
 
133 133
 The `ADD` instruction will insert the files from the `<src>` path of the context into `<dest>` path 
134 134
 of the container.
135
+`<src>` can be a local path or a remote file URL.
136
+
135 137
 The context must be set in order to use this instruction. (see examples)
136 138
 
137 139
 3. Dockerfile Examples