moving location of commands in dockerfile to make building faster (take advantage of build cache)