php8.2
Hugo Thunnissen 8 months ago
parent 6127d61d2b
commit b46907513e

@ -1,46 +1,56 @@
FROM debian:sid
FROM ubuntu:22.04
# Set the env variables to non-interactive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical
ENV DEBCONF_NOWARNINGS yes
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
libreadline8 bash-completion sudo tzdata libtool-bin software-properties-common
RUN add-apt-repository ppa:ondrej/php
RUN apt-get update && apt-get -y install \
php8.1-memcached \
php8.2-memcached \
php-redis \
php8.1-bcmath \
php8.1-fpm \
php8.1-bz2 \
php8.1-cli \
php8.1-common \
php8.1-curl \
php8.1-gmp \
php8.1-intl \
php8.2-bcmath \
php8.2-fpm \
php8.2-bz2 \
php8.2-cli \
php8.2-common \
php8.2-curl \
php8.2-gmp \
php8.2-intl \
php-json \
php8.1-mbstring \
php8.1-mysql \
php8.1-odbc \
php8.1-opcache \
php8.1-pgsql \
php8.1-readline \
php8.1-tidy \
php8.1-xml \
php8.1-xsl \
php8.1-zip \
php8.1-gd \
php8.2-mbstring \
php8.2-mysql \
php8.2-odbc \
php8.2-opcache \
php8.2-pgsql \
php8.2-readline \
php8.2-tidy \
php8.2-xml \
php8.2-xsl \
php8.2-zip \
php8.2-gd \
php-bcmath \
php-apcu \
php-cli \
php-imagick \
composer
ADD ./www.conf /etc/php/8.1/fpm/pool.d/www.conf
ADD ./php.ini /etc/php/8.1/fpm/
ADD ./php-fpm.conf /etc/php/8.1/fpm/
ADD ./www.conf /etc/php/8.2/fpm/pool.d/www.conf
ADD ./php.ini /etc/php/8.2/fpm/
ADD ./php-fpm.conf /etc/php/8.2/fpm/
RUN touch /var/log/php8.2-fpm.log
RUN chmod 777 /var/log/php8.2-fpm.log
RUN mkdir -p /run/php
RUN chmod 777 /run/php
CMD [ \
"/usr/sbin/php-fpm8.1", \
"/usr/sbin/php-fpm8.2", \
"--nodaemonize", \
"--fpm-config", \
"/etc/php/8.1/fpm/php-fpm.conf" \
"/etc/php/8.2/fpm/php-fpm.conf" \
]

@ -16,14 +16,14 @@
; Default Value: none
; Warning: if you change the value here, you need to modify systemd
; service PIDFile= setting to match the value here.
pid = /run/php/php8.1-fpm.pid
pid = /run/php/php8.2-fpm.pid
; Error log file
; If it's set to "syslog", log is sent to syslogd instead of being written
; into a local file.
; Note: the default prefix is /var
; Default Value: log/php-fpm.log
error_log = /var/log/php8.1-fpm.log
error_log = /var/log/php8.2-fpm.log
; syslog_facility is used to specify what type of program is logging the
; message. This lets syslogd specify that messages from different facilities
@ -142,4 +142,4 @@ systemd_interval = 0
; Relative path can also be used. They will be prefixed by:
; - the global prefix if it's been set (-p argument)
; - /usr otherwise
include=/etc/php/8.1/fpm/pool.d/*.conf
include=/etc/php/8.2/fpm/pool.d/*.conf

Loading…
Cancel
Save