Improve order of commands in Dockerfile to speed up compilation when adjusting config files at the end of the file.