-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile template to match best practices (#6021)
Changes: - Remove `-y` flag from `apt-get update`, as it has no effect on that command. - Use `--no-install-recommends` flag to avoid installing unnecessary dependencies. - Use more general wildcard to remove apt package list cache. - Remove `apt-get clean` command, as official Debian and Ubuntu images run it automatically. - Update example in the documentation to match the changes. Reference: - https://docs.docker.com/build/building/best-practices/#apt-get
- Loading branch information
1 parent
bc77433
commit 5c8b7e9
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters