File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1- FROM php:8.1.1 -cli
1+ FROM php:8.1-cli
22WORKDIR /usr/src/myapp
33
4+ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
5+
46RUN apt-get update && apt-get install zip unzip git -y \
57 && pecl install xdebug \
6- && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
7- && php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
8- && php composer-setup.php --install-dir=/usr/bin --filename=composer \
9- && php -r "unlink('composer-setup.php');" \
10- && mkdir /.composer && chmod 777 /.composer
8+ && pecl install pcov
You can’t perform that action at this time.
0 commit comments