更新 Dockerfile
This commit is contained in:
parent
ff70823d50
commit
9206c7ee28
@ -8,7 +8,7 @@ RUN set -eux; \
|
|||||||
\
|
\
|
||||||
# 更新系统并安装基础工具
|
# 更新系统并安装基础工具
|
||||||
apt update; \
|
apt update; \
|
||||||
apt install -y --no-install-recommends wget ca-certificates; \
|
apt install -y --no-install-recommends wget unzip ca-certificates; \
|
||||||
\
|
\
|
||||||
# 添加 PHP 仓库
|
# 添加 PHP 仓库
|
||||||
wget --no-check-certificate -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg; \
|
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 扩展
|
||||||
pecl channel-update pecl.php.net; \
|
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; \
|
strip --strip-debug /usr/lib/php/*/*.so; \
|
||||||
|
Loading…
Reference in New Issue
Block a user