Improve the Dockerfile steps order.