]> git.donarmstrong.com Git - qmk_firmware.git/commit
Cleaning Up Dockerfile Layers Per Official Docs
authorRyan MacLean <ryan@ryanmaclean.com>
Sun, 30 Apr 2017 22:04:00 +0000 (15:04 -0700)
committerGitHub <noreply@github.com>
Sun, 30 Apr 2017 22:04:00 +0000 (15:04 -0700)
commit7ce94eb468ff34f904f8ef8fdeb3c5fe2d09d78c
treeb3c8b25a6ad9a874f38b6f58b838ab9aa5afccda
parent26b51383b2e387b3f1c4f257aa91d97d2e8ef6c9
Cleaning Up Dockerfile Layers Per Official Docs

From the official docs:

```
Note: The official Debian and Ubuntu images automatically run apt-get clean, so explicit invocation is not required.
```

Also added ` && rm -rf /var/lib/apt/lists/*` as part of the install line which probably does what was intended (no need to make a new layer).

Added apt-get update to the RUN payload, as it should be part of the same layer.

Both are documented here: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
Dockerfile