change order of few instructions on dockerfile