php: Add Dockerfile for Bullseye

Transitional dummy package removed in Bullseye: php-gettext.
Is php-php-gettext really useful?
This commit is contained in:
David Prevot 2022-04-19 09:30:25 +02:00
parent 814aebd1ab
commit aafe913099
3 changed files with 54 additions and 0 deletions

27
php/Dockerfile.bullseye Normal file
View File

@ -0,0 +1,27 @@
FROM debian:bullseye
LABEL maintainer="Equipe Evolix <info@evolix.fr>"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
php \
php-fpm \
php-cli \
php-curl \
php-mysql \
php-pgsql \
php-ldap \
php-imap \
php-gd \
php-ssh2 \
php-php-gettext \
composer \
libphp-phpmailer \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY z-evolinux-defaults.php74.ini /etc/php/7.4/fpm/conf.d/z-evolinux-defaults.ini
COPY pool.d-defaults.php74.conf /etc/php/7.4/fpm/pool.d/www.conf
EXPOSE 9000
CMD ["php-fpm7.4"]

View File

@ -0,0 +1,14 @@
[global]
daemonize = no
[www]
listen = 9000
user = www-data
group = www-data
pm = ondemand
pm.max_children = 100
pm.process_idle_timeout = 10s
access.log = /proc/self/fd/2
clear_env = no
catch_workers_output = yes

View File

@ -0,0 +1,13 @@
[PHP]
short_open_tag = Off
expose_php = Off
display_errors = Off
log_errors = On
html_errors = Off
allow_url_fopen = Off
memory_limit = 128M
max_execution_time = 10
open_basedir = /home
disable_functions = exec, shell-exec, system, passthru, putenv, popen
error_log = /proc/self/fd/2