debian10: provide a composer 2 version

This commit is contained in:
Benjamin Renard 2024-04-18 14:26:30 +02:00
parent 6c87ff318d
commit 393d5ac79c
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -8,3 +8,11 @@ RUN python3 -m pip install -U pip && \
python3 -m pip install $PIP_PACKAGES
INCLUDE+ Dockerfile.common
# Install composer > 2
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php && \
rm -f composer-setup.php && \
mv composer.phar /usr/local/bin/composer && \
chmod 755 /usr/local/bin/composer