debian10: provide a composer 2 version
This commit is contained in:
parent
6c87ff318d
commit
5bd9b03b54
1 changed files with 9 additions and 0 deletions
|
@ -8,3 +8,12 @@ RUN python3 -m pip install -U pip && \
|
|||
python3 -m pip install $PIP_PACKAGES
|
||||
|
||||
INCLUDE+ Dockerfile.common
|
||||
|
||||
# Install composer > 2
|
||||
RUN apt-get purge -y composer && \
|
||||
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/bin/composer && \
|
||||
chmod 755 /usr/bin/composer
|
||||
|
|
Loading…
Reference in a new issue