19 lines
759 B
Text
19 lines
759 B
Text
# syntax = edrevo/dockerfile-plus
|
|
|
|
FROM debian:10-slim
|
|
|
|
INCLUDE+ Dockerfile.common.init
|
|
|
|
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
|