debian10: provide a composer 2 version
This commit is contained in:
parent
6c87ff318d
commit
393d5ac79c
1 changed files with 8 additions and 0 deletions
|
@ -8,3 +8,11 @@ RUN python3 -m pip install -U pip && \
|
||||||
python3 -m pip install $PIP_PACKAGES
|
python3 -m pip install $PIP_PACKAGES
|
||||||
|
|
||||||
INCLUDE+ Dockerfile.common
|
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
|
||||||
|
|
Loading…
Reference in a new issue