From dab8926b72bb447f34e14c6c3ad84adfc4167b5f Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Wed, 21 Feb 2024 17:30:32 -0600 Subject: [PATCH] feat: Install some extensions by default --- Dockerfile | 16 ++++------------ rootfs/usr/bin/clevyr-build | 16 ---------------- 2 files changed, 4 insertions(+), 28 deletions(-) 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"