更新 Dockerfile
This commit is contained in:
@ -12,6 +12,7 @@ RUN echo "https://mirrors.aliyun.com/alpine/v3.16/main" > /etc/apk/repositories
|
||||
|
||||
# 安装依赖 + 常用扩展
|
||||
RUN apk add --no-cache \
|
||||
libpng-dev \
|
||||
bash \
|
||||
curl \
|
||||
wget \
|
||||
@ -40,6 +41,8 @@ RUN apk add --no-cache \
|
||||
# 安装 redis 扩展(最后一个支持 php7.2 的版本)
|
||||
&& pecl install redis-5.3.7 \
|
||||
&& docker-php-ext-enable redis \
|
||||
&& docker-php-ext-install gd \
|
||||
&& docker-php-ext-enable gd \
|
||||
# 安装 composer
|
||||
&& curl -sS https://getcomposer.org/installer | php -- \
|
||||
--install-dir=/usr/local/bin --filename=composer \
|
||||
|
Reference in New Issue
Block a user