Merge pull request #10084 from ShivangGoswami/patch-1

Update dockerfile best practices
This commit is contained in:
Usha Mandya 2019-12-27 10:55:04 +00:00 committed by GitHub
commit 0cd97e7966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
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.
```Dockerfile