diff options
author | Ryan MacLean <ryan@ryanmaclean.com> | 2017-04-30 15:04:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-30 15:04:00 -0700 |
commit | 7ce94eb468ff34f904f8ef8fdeb3c5fe2d09d78c (patch) | |
tree | b3c8b25a6ad9a874f38b6f58b838ab9aa5afccda /Dockerfile | |
parent | 26b51383b2e387b3f1c4f257aa91d97d2e8ef6c9 (diff) | |
download | qmk_firmware-7ce94eb468ff34f904f8ef8fdeb3c5fe2d09d78c.tar.gz qmk_firmware-7ce94eb468ff34f904f8ef8fdeb3c5fe2d09d78c.zip |
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/
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile index 744ded857..88da06f02 100644 --- a/Dockerfile +++ b/Dockerfile | |||
@@ -1,8 +1,7 @@ | |||
1 | FROM debian:jessie | 1 | FROM debian:jessie |
2 | MAINTAINER Erik Dasque <erik@frenchguys.com> | 2 | MAINTAINER Erik Dasque <erik@frenchguys.com> |
3 | 3 | ||
4 | RUN apt-get update | 4 | RUN apt-get update && apt-get install --no-install-recommends -y build-essential \ |
5 | RUN apt-get install --no-install-recommends -y build-essential \ | ||
6 | gcc \ | 5 | gcc \ |
7 | unzip \ | 6 | unzip \ |
8 | wget \ | 7 | wget \ |
@@ -15,10 +14,8 @@ RUN apt-get install --no-install-recommends -y build-essential \ | |||
15 | gcc-arm-none-eabi \ | 14 | gcc-arm-none-eabi \ |
16 | binutils-arm-none-eabi \ | 15 | binutils-arm-none-eabi \ |
17 | libnewlib-arm-none-eabi \ | 16 | libnewlib-arm-none-eabi \ |
18 | git | 17 | git \ |
19 | 18 | && rm -rf /var/lib/apt/lists/* | |
20 | RUN apt-get clean | ||
21 | RUN rm -rf /var/lib/apt/lists/* | ||
22 | 19 | ||
23 | ENV keyboard=ergodox | 20 | ENV keyboard=ergodox |
24 | ENV subproject=ez | 21 | ENV subproject=ez |