Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Only build essential boost libraries in docker #1507
In the Dockerfile used for continuous integration all the boost libraries are built; however we only need 4: thread, log, filesystem & program_options. Now this isn't a big issue as we use the option "--cache-from nanocurrency/nano-ci:latest", which picks up the boost files from the intermediate cache layer. But it would be a bit quicker getting the cache and also result in a smaller docker image.
I've made another adjustment as per the docker best practices "Always combine RUN apt-get update with apt-get install in the same RUN statement". This is because, if we only changed the second RUN then we would not be getting the latest repositories from apt even though apt-get update is called in the first one, because it is taken from the cache.
It is also recommend to clear the apt cache with rm -rf /var/lib/apt/lists/* after calling apt-get install, however this caused problems getting ccache from travis-ci, so I have left this as is.