Browse Source

fix bug

main
xiaoz 12 months ago
parent
commit
1fedc4d4c6
  1. 6
      php74/Dockerfile

6
php74/Dockerfile

@ -3,12 +3,14 @@ FROM php:7.4-fpm-alpine
# 安装gd扩展和其他扩展的依赖 # 安装gd扩展和其他扩展的依赖
RUN apk add --no-cache freetype-dev libjpeg-turbo-dev libpng-dev libzip-dev libpng libjpeg-turbo \ RUN apk add --no-cache freetype-dev libjpeg-turbo-dev libpng-dev libzip-dev libpng libjpeg-turbo \
&& docker-php-ext-configure gd --with-jpeg --with-freetype \ && docker-php-ext-configure gd --with-jpeg --with-freetype \
&& docker-php-ext-install gd bcmath exif gettext intl mysqli pcntl pdo_mysql redis shmop soap sockets sysvsem xmlrpc xsl zip opcache && docker-php-ext-install gd bcmath exif gettext intl mysqli pcntl pdo_mysql shmop soap sockets sysvsem xmlrpc xsl zip opcache
# 安装 ImageMagick 和 imagick # 安装 ImageMagick 和 imagick
RUN apk add --no-cache imagemagick imagemagick-dev \ RUN apk add --no-cache imagemagick imagemagick-dev \
&& pecl install imagick \ && pecl install imagick \
&& docker-php-ext-enable imagick && docker-php-ext-enable imagick \
&& pecl install redis \
&& docker-php-ext-enable redis
# 删除不再需要的依赖 # 删除不再需要的依赖
RUN apk del freetype-dev libjpeg-turbo-dev libpng-dev \ RUN apk del freetype-dev libjpeg-turbo-dev libpng-dev \

Loading…
Cancel
Save