diff --git a/Dockerfile b/Dockerfile index fa13782..d026ab0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,12 @@ FROM composer:$COMPOSER_VERSION as local-composer FROM php:$PHP_VERSION-fpm-alpine$ALPINE_VERSION as base WORKDIR /app +COPY --from=mlocati/php-extension-installer:2.2.2 /usr/bin/install-php-extensions /usr/bin/ + RUN <&2 } -# Convert old dependency args to new format with defaults -if [ "$INSTALL_BCMATH" != "false" ]; then - unset INSTALL_BCMATH - export INSTALL="$INSTALL bcmath" -fi - if [ "$INSTALL_MYSQL" = "true" ]; then unset INSTALL_MYSQL export INSTALL="$INSTALL mysqli pdo_mysql" fi -if [ "$INSTALL_OPCACHE" != "false" ]; then - unset INSTALL_OPCACHE - export INSTALL="$INSTALL opcache" -fi - -if [ "$INSTALL_PGSQL" != "false" ]; then - unset INSTALL_PGSQL - export INSTALL="$INSTALL pgsql pdo_pgsql" -fi - if [ "$INSTALL_SQLSRV" = "true" ]; then unset INSTALL_SQLSRV export INSTALL="$INSTALL sqlsrv pdo_sqlsrv"