From 78e106cff2d34e8c8e6417b2c8d3aceab86d89ff Mon Sep 17 00:00:00 2001 From: Louis Beltramo Date: Wed, 6 Apr 2016 13:00:53 +0200 Subject: [PATCH] Clarify where to put nginx custom template without `WORKDIR` Docker assume `/` as [default `WORKDIR`](https://docs.docker.com/engine/reference/run/#workdir), but dokku [looks in the `/app` folder](https://github.com/dokku/dokku/blob/master/plugins/common/functions#L257) [ci skip] --- docs/nginx.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/nginx.md b/docs/nginx.md index 8907b5989..3fc30fc92 100644 --- a/docs/nginx.md +++ b/docs/nginx.md @@ -17,6 +17,7 @@ Dokku uses a templating library by the name of [sigil](https://github.com/glider - Copy the following example template to a file named `nginx.conf.sigil` and either: - check it into the root of your app repo - `ADD` it to your dockerfile `WORKDIR` + - if your dockerfile has no `WORKDIR`, `ADD` it to the `/app` folder ### Example Custom Template Use case: add an `X-Served-By` header to requests