Install composer in its own layer (#2641)

Composer installation seems to fail sometimes in the CI build
environment. Move the installation of composer to a separate layer and
separate the download of the file via curl from the installation
process. Finally, run `composer --version` to ensure that it has been
installed correctly.
1 file changed