Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
| ... | ... |
@@ -1021,6 +1021,8 @@ and for any `RUN`, `CMD` and `ENTRYPOINT` instructions that follow it in the |
| 1021 | 1021 |
|
| 1022 | 1022 |
The `WORKDIR` instruction sets the working directory for any `RUN`, `CMD`, |
| 1023 | 1023 |
`ENTRYPOINT`, `COPY` and `ADD` instructions that follow it in the `Dockerfile`. |
| 1024 |
+If the `WORKDIR` doesn't exist, it will be created even if its not used in any |
|
| 1025 |
+subsequent `Dockerfile` instruction. |
|
| 1024 | 1026 |
|
| 1025 | 1027 |
It can be used multiple times in the one `Dockerfile`. If a relative path |
| 1026 | 1028 |
is provided, it will be relative to the path of the previous `WORKDIR` |