pfenv/Dockerfile
xiaoqidun 2fe86a064e
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
feat(更新版本): 更新版本
2023-09-21 23:06:11 +08:00

68 lines
1.4 KiB
Docker

# 基础镜像
FROM php:8.2.10-fpm
# 作者信息
LABEL MAINTAINER="xiaoqidun@gmail.com"
# 安装扩展
RUN pecl install redis-6.0.0 \
&& docker-php-ext-enable redis
RUN pecl install xdebug-3.3.0alpha2 \
&& docker-php-ext-enable xdebug
RUN pecl install runkit7-4.0.0a6 \
&& docker-php-ext-enable runkit7
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