build(deps): 添加 intl 扩展并优化 Dockerfile 构建流程

- 在 composer.json 中添加 ext-intl 依赖
-优化 Dockerfile 中的 PHP 扩展安装流程,减少冗余步骤
This commit is contained in:
coolxitech 2024-12-21 20:11:11 +08:00
parent ceb8b05f75
commit d3c76d2fd1
2 changed files with 3 additions and 4 deletions

View File

@ -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",

View File

@ -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/*