Skip to content

Commit 2d3bd4b

Browse files
committed
Simplify Dockerfile.
1 parent f1a65d0 commit 2d3bd4b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docker/php/81/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
FROM php:8.1.1-cli
1+
FROM php:8.1-cli
22
WORKDIR /usr/src/myapp
33

4+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
5+
46
RUN 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

0 commit comments

Comments
 (0)