2021-01-08 15:07:35 +08:00
|
|
|
# 基础镜像
|
2021-07-07 13:35:20 +08:00
|
|
|
FROM php:7.4.21-fpm
|
2021-01-08 15:07:35 +08:00
|
|
|
|
|
|
|
# 作者信息
|
|
|
|
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
|
|
|
|
|
|
|
# 安装扩展
|
2021-03-26 11:13:15 +08:00
|
|
|
RUN pecl install redis-5.3.4 \
|
2021-01-08 15:07:35 +08:00
|
|
|
&& docker-php-ext-enable redis
|
|
|
|
|
2021-05-10 14:45:54 +08:00
|
|
|
RUN pecl install xdebug-3.0.4 \
|
2021-01-08 15:07:35 +08:00
|
|
|
&& docker-php-ext-enable xdebug
|
|
|
|
|
|
|
|
RUN docker-php-ext-install -j$(nproc) \
|
|
|
|
dba \
|
|
|
|
exif \
|
|
|
|
pcntl \
|
|
|
|
shmop \
|
|
|
|
bcmath \
|
|
|
|
gettext \
|
|
|
|
sockets \
|
|
|
|
sysvmsg \
|
|
|
|
sysvsem \
|
|
|
|
sysvshm \
|
|
|
|
calendar \
|
|
|
|
mysqli \
|
|
|
|
pdo_mysql
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
|
|
|
libpng-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libjpeg62-turbo-dev \
|
|
|
|
&& docker-php-ext-configure gd \
|
|
|
|
--with-jpeg \
|
|
|
|
--with-freetype \
|
|
|
|
&& docker-php-ext-install -j$(nproc) gd
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
|
|
|
libffi-dev \
|
|
|
|
&& docker-php-ext-configure ffi \
|
|
|
|
--with-ffi \
|
|
|
|
&& docker-php-ext-install -j$(nproc) ffi
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
|
|
|
libzip-dev \
|
|
|
|
&& docker-php-ext-install -j$(nproc) zip
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
|
|
|
libbz2-dev \
|
|
|
|
&& docker-php-ext-install -j$(nproc) bz2
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
|
|
|
libpq-dev \
|
|
|
|
&& docker-php-ext-install -j$(nproc) \
|
|
|
|
pgsql \
|
|
|
|
pdo_pgsql
|
|
|
|
|
|
|
|
RUN docker-php-ext-configure opcache --enable-opcache \
|
|
|
|
&& docker-php-ext-install -j$(nproc) opcache
|