Skip to content

Commit

Permalink
Prefer BCMath over GMP
Browse files Browse the repository at this point in the history
Lighter solution and easier to build
  • Loading branch information
LeoColomb committed Nov 30, 2020
1 parent d1abb37 commit d2e5a89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM php:7.4-%%VARIANT%%

# install the PHP extensions we need
RUN set -eux; \
docker-php-ext-install -j "$(nproc)" gmp opcache pdo_mysql mysqli
docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli

# set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php
Expand Down
2 changes: 1 addition & 1 deletion apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM php:7.4-apache

# install the PHP extensions we need
RUN set -eux; \
docker-php-ext-install -j "$(nproc)" gmp opcache pdo_mysql mysqli
docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli

# set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php
Expand Down
2 changes: 1 addition & 1 deletion fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM php:7.4-fpm-alpine

# install the PHP extensions we need
RUN set -eux; \
docker-php-ext-install -j "$(nproc)" gmp opcache pdo_mysql mysqli
docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli

# set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php
Expand Down
2 changes: 1 addition & 1 deletion fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM php:7.4-fpm

# install the PHP extensions we need
RUN set -eux; \
docker-php-ext-install -j "$(nproc)" gmp opcache pdo_mysql mysqli
docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli

# set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php
Expand Down

0 comments on commit d2e5a89

Please sign in to comment.