From d3c76d2fd16d9bbdf19a931a39598ad75bd76e37 Mon Sep 17 00:00:00 2001 From: coolxitech Date: Sat, 21 Dec 2024 20:11:11 +0800 Subject: [PATCH] =?UTF-8?q?build(deps):=20=E6=B7=BB=E5=8A=A0=20intl=20?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E5=B9=B6=E4=BC=98=E5=8C=96=20Dockerfile=20?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 composer.json 中添加 ext-intl 依赖 -优化 Dockerfile 中的 PHP 扩展安装流程,减少冗余步骤 --- composer.json | 1 + dockerfile | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 8b2365b..a08eabb 100644 --- a/composer.json +++ b/composer.json @@ -43,6 +43,7 @@ "ext-pdo": "*", "ext-gd": "*", "ext-curl": "*", + "ext-intl": "*", "topthink/framework": "^8.0", "topthink/think-orm": "^3.0", "topthink/think-filesystem": "^2.0", diff --git a/dockerfile b/dockerfile index 1903a28..6fa66be 100644 --- a/dockerfile +++ b/dockerfile @@ -26,10 +26,8 @@ RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g' /etc/apk/repositories brotli-dev RUN docker-php-ext-configure gd --with-jpeg --with-webp --with-xpm --with-avif --with-freetype=/usr/include/freetype2 --with-jpeg=/usr/include\ - && docker-php-ext-install gd \ - && docker-php-ext-install zip \ - && docker-php-ext-install pdo pdo_mysql \ - && docker-php-ext-enable opcache \ + && docker-php-ext-install gd zip intl pdo pdo_mysql opcache \ + && docker-php-ext-enable gd zip intl pdo pdo_mysql opcache \ && pecl install swoole \ && docker-php-ext-enable swoole \ && rm -rf /var/cache/apk/*