+ bcmatch, geoip, webp, pdo_pgsql

This commit is contained in:
2020-08-03 18:12:38 +03:00
parent 88490afe77
commit 5f79d7bf2e

View File

@ -3,8 +3,9 @@ RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libwebp-dev \
&& docker-php-ext-install -j$(nproc) iconv \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install mysqli \
&& docker-php-ext-enable mysqli
@ -124,3 +125,26 @@ RUN sed -i "s/^upload_max_filesize = .*/upload_max_filesize = $PHP_OPT_UPLOAD_MA
###########################################################################
RUN sed -i "s/^log_limit = .*/log_limit = 1024/g" "$PHP_INI_DIR/../php-fpm.d/docker.conf"
###########################################################################
# BCMATH functions:
###########################################################################
RUN docker-php-ext-install bcmath && docker-php-ext-enable bcmath
###########################################################################
# GEOIP:
###########################################################################
RUN apt update \
&& apt install -y libgeoip-dev wget \
&& rm -rf /var/lib/apt/lists/* \
&& pecl install geoip-1.1.1 \
&& docker-php-ext-enable geoip
###########################################################################
# PGSQL:
###########################################################################
RUN apt-get update && apt install -y libpq-dev \
&& docker-php-ext-install pdo_pgsql && docker-php-ext-enable pdo_pgsql