docker-php-pre-commit/Dockerfile.debian10

20 lines
759 B
Text
Raw Normal View History

2024-02-29 17:44:55 +01:00
# 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
2024-04-18 14:26:30 +02:00
# 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