Move composer download and installation to compile stage