davidalger / docker-images-php

PHP and PHP-FPM images for Docker based on EL 8
https://hub.docker.com/r/davidalger/php
MIT License
15 stars 16 forks source link

Composer 2.2 (LTS) #15

Open tomasmarcik opened 1 year ago

tomasmarcik commented 1 year ago

Can you please add composer 2.2 as another version and also add env param which will defifne which version shall be used as default?

Currently in my scripts running in this container, first thing I have to run is:

rm -f /usr/bin/composer
curl -sS https://getcomposer.org/installer | php -- --2.2 --install-dir=/usr/bin --filename=composer

It would be easier if it would respect env variable (which can default to 1 for backwards compatibility).

FYI I am using this image with bitbucket pipelines so I am limited with what I can do with it.

Appreciated!