更新 Dockerfile

This commit is contained in:
ivampiresp 2025-07-27 04:49:36 +00:00
parent ff70823d50
commit 9206c7ee28

View File

@ -8,7 +8,7 @@ RUN set -eux; \
\
# 更新系统并安装基础工具
apt update; \
apt install -y --no-install-recommends wget ca-certificates; \
apt install -y --no-install-recommends wget unzip ca-certificates; \
\
# 添加 PHP 仓库
wget --no-check-certificate -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg; \
@ -44,7 +44,7 @@ RUN set -eux; \
\
# 安装 PECL 扩展
pecl channel-update pecl.php.net; \
MAKEFLAGS="-j $(nproc)" pecl install grpc openswoole; \
MAKEFLAGS="-j $(nproc)" pecl install grpc swoole; \
\
# 移除构建依赖和缓存
strip --strip-debug /usr/lib/php/*/*.so; \