mirror of https://github.com/akaunting/docker.git
php updated
This commit is contained in:
parent
4762e225ba
commit
894fde1603
|
@ -1,9 +1,10 @@
|
||||||
FROM php:7.2-fpm
|
FROM php:7.4-fpm
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
imagemagick \
|
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
libjpeg62-turbo-dev \
|
libjpeg62-turbo-dev \
|
||||||
|
libzip-dev \
|
||||||
|
imagemagick \
|
||||||
libmcrypt-dev \
|
libmcrypt-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
|
@ -13,24 +14,20 @@ RUN apt-get update && apt-get install -y \
|
||||||
patch \
|
patch \
|
||||||
unzip \
|
unzip \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
|
zip \
|
||||||
--no-install-recommends && \
|
--no-install-recommends && \
|
||||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
|
||||||
|
|
||||||
RUN cp /usr/share/i18n/SUPPORTED /etc/locale.gen
|
RUN cp /usr/share/i18n/SUPPORTED /etc/locale.gen
|
||||||
RUN locale-gen
|
RUN locale-gen
|
||||||
|
|
||||||
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
|
|
||||||
|
|
||||||
RUN docker-php-ext-install \
|
RUN docker-php-ext-install \
|
||||||
gd \
|
gd \
|
||||||
|
bcmath \
|
||||||
pcntl \
|
pcntl \
|
||||||
|
pdo \
|
||||||
|
pdo_pgsql \
|
||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
RUN pecl channel-update pecl.php.net \
|
|
||||||
&& printf "\n" | pecl install mcrypt-1.0.2 \
|
|
||||||
&& printf "\n" | pecl install xdebug-2.7.2 \
|
|
||||||
&& docker-php-ext-enable mcrypt xdebug
|
|
||||||
|
|
||||||
COPY conf/xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
|
||||||
COPY conf/zz-docker.conf /usr/local/etc/php-fpm.d/zz-docker.conf
|
|
|
@ -1,4 +0,0 @@
|
||||||
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
|
|
||||||
xdebug.remote_connect_back=1
|
|
||||||
xdebug.remote_enable=1
|
|
||||||
xdebug.remote_port=9000
|
|
|
@ -1,10 +0,0 @@
|
||||||
[global]
|
|
||||||
daemonize = no
|
|
||||||
|
|
||||||
[www]
|
|
||||||
listen = 9000
|
|
||||||
|
|
||||||
pm = dynamic
|
|
||||||
pm.max_children = 64
|
|
||||||
pm.process_idle_timeout = 2s
|
|
||||||
pm.max_requests = 1000
|
|
Loading…
Reference in New Issue