docs: clarify that a dockerfile is still needed

[ci skip]
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2019-05-12 18:58:28 -04:00
1 parent d356cef183
commit 6006303409
1 file changed
+6 -1
+6 -1
View File
@@ -26,10 +26,15 @@ For security reasons - and as per [Docker recommendations](https://github.com/do
For users that require customization in the `build` phase, you may use build arguments via the [docker-options plugin](docs/advanced-usage/docker-options.md): For users that require customization in the `build` phase, you may use build arguments via the [docker-options plugin](docs/advanced-usage/docker-options.md):
```shell ```shell
dokku docker-options:add node-js-app build '--file Dockerfile.dokku' # e.g. to use alternate Dockerfile
dokku docker-options:add node-js-app build '--build-arg NODE_ENV=production' dokku docker-options:add node-js-app build '--build-arg NODE_ENV=production'
``` ```
The location of the `Dockerfile` may also be specified. If the location is changed, the repository **must also** have a `Dockerfile` in the root directory in order to trigger a dockerfile-based deploy.
```shell
dokku docker-options:add node-js-app build '--file Dockerfile.dokku'
```
Once set, the Dockerfile usage would be as follows: Once set, the Dockerfile usage would be as follows:
```Dockerfile ```Dockerfile