Optimize docker image building
Optimize docker image building

Package dependencies are installed first before the whole source is
copied into the image. This reduces the number of cache invalidations
in building the image.

Raphx/fuzza