Update Dockerfile to benefit build cache
authorThibault Jamet <tjamet@users.noreply.github.com>
Thu, 7 Sep 2017 13:08:56 +0000 (15:08 +0200)
committerAnthony Fok <foka@debian.org>
Mon, 25 Sep 2017 16:28:13 +0000 (10:28 -0600)
commit09d960f17396eb7fd2c8fe6527db9503d59f0b4f
tree9a631bb77e0c34d71ce66a365b637e3b6f1f84fa
parenta3a3f5b86114213a23337499551f000662b26022
Update Dockerfile to benefit build cache

Docker has recently introduces buikld-stages (as of version 17.05)

Build stages allows to benefit the docker build cache as well as
reducing the size of the resulting image c.f.
https://docs.docker.com/engine/userguide/eng-image/multistage-build/

This change allows to have faster builds when running `docker build`
several times after changing some little code

Signed-off-by: Thibault Jamet <tjamet@users.noreply.github.com>
Dockerfile