minimize the number of layers
remove duplicate dist-upgrade
use WORKDIR instead of cd
remove useless extra pull