pfenv/Dockerfile

68 lines
1.4 KiB
Docker
Raw Normal View History

2021-01-08 15:07:35 +08:00
# 基础镜像
2024-09-21 22:30:16 +08:00
FROM php:8.3.11-fpm
2021-01-08 15:07:35 +08:00
# 作者信息
2024-06-22 23:35:48 +08:00
LABEL authors="xiaoqidun"
2021-01-08 15:07:35 +08:00
# 安装扩展
2024-09-21 22:30:16 +08:00
RUN pecl install redis-6.1.0RC1 \
2021-01-08 15:07:35 +08:00
&& docker-php-ext-enable redis
2024-06-22 23:35:48 +08:00
RUN pecl install xdebug-3.3.2 \
2021-01-08 15:07:35 +08:00
&& docker-php-ext-enable xdebug
2023-04-08 13:30:56 +08:00
RUN pecl install runkit7-4.0.0a6 \
2021-10-18 13:44:32 +08:00
&& docker-php-ext-enable runkit7
2021-01-08 15:07:35 +08:00
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