Fix docker build syntax

Docker build expects both tag name and build directory as arguments.
This commit is contained in:
Bascht authored and GitHub committed 2016-09-03 17:52:05 +02:00
1 parent befb5a0dd9
commit 6171cc881b
1 file changed
+2 -2
+2 -2
View File
@@ -122,7 +122,7 @@ it directly to the host running dokku.
1. Build image on CI (or locally) 1. Build image on CI (or locally)
```shell ```shell
docker build -t dokku/test-app:v12 docker build -t dokku/test-app:v12 .
# Note: The image must be tagged `dokku/<app-name>:<version>` # Note: The image must be tagged `dokku/<app-name>:<version>`
``` ```
@@ -139,7 +139,7 @@ Here's a more complete example using the above method:
```shell ```shell
# build the image # build the image
docker build -t dokku/test-app:v12 docker build -t dokku/test-app:v12 .
# copy the image to the dokku host # copy the image to the dokku host
docker save dokku/test-app:v12 | bzip2 | ssh my.dokku.host "bunzip2 | docker load" docker save dokku/test-app:v12 | bzip2 | ssh my.dokku.host "bunzip2 | docker load"
# tag and deploy the image # tag and deploy the image