mirror of https://github.com/docker/docs.git
Merge pull request #10084 from ShivangGoswami/patch-1
Update dockerfile best practices
This commit is contained in:
commit
0cd97e7966
|
|
@ -654,7 +654,7 @@ auto-magically bump the version of the software in your container.
|
||||||
|
|
||||||
Each `ENV` line creates a new intermediate layer, just like `RUN` commands. This
|
Each `ENV` line creates a new intermediate layer, just like `RUN` commands. This
|
||||||
means that even if you unset the environment variable in a future layer, it
|
means that even if you unset the environment variable in a future layer, it
|
||||||
still persists in this layer and its value can be dumped. You can test this by
|
still persists in this layer and its value can't be dumped. You can test this by
|
||||||
creating a Dockerfile like the following, and then building it.
|
creating a Dockerfile like the following, and then building it.
|
||||||
|
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue