Fix docs so WORKDIR mentions it works for COPY and ADD too

The docs around COPY/ADD already mentioned that it will do a relative
copy/add based on WORKDIR, so that part is already ok.  Just needed to
tweak the WORKDIR section since w/o mentioning COPY/ADD it can be misleading.

Noticed by @phemmer

Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
Doug Davis 2015-01-26 05:29:49 -08:00 committed by Tibor Vass
parent dc7a9b9c0e
commit 37fd964edb
1 changed files with 2 additions and 2 deletions

View File

@ -801,8 +801,8 @@ and for any `RUN`, `CMD` and `ENTRYPOINT` instructions that follow it in the
WORKDIR /path/to/workdir WORKDIR /path/to/workdir
The `WORKDIR` instruction sets the working directory for any `RUN`, `CMD` and The `WORKDIR` instruction sets the working directory for any `RUN`, `CMD`,
`ENTRYPOINT` instructions that follow it in the `Dockerfile`. `ENTRYPOINT`, `COPY` and `ADD` instructions that follow it in the `Dockerfile`.
It can be used multiple times in the one `Dockerfile`. If a relative path It can be used multiple times in the one `Dockerfile`. If a relative path
is provided, it will be relative to the path of the previous `WORKDIR` is provided, it will be relative to the path of the previous `WORKDIR`