Skip to content

Commit 23aaa22

Browse files
authored
[php] Mixphp update to PHP 8.2 (#8081)
1 parent 7ed1726 commit 23aaa22

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

frameworks/PHP/mixphp/mixphp-workerman-pgsql.dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

55
RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
66
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
7-
RUN apt-get update -yqq && apt-get install -yqq git unzip wget curl build-essential php8.1-cli php8.1-mbstring php8.1-curl php8.1-xml php8.1-pgsql > /dev/null
7+
RUN apt-get update -yqq && apt-get install -yqq git unzip wget curl build-essential php8.2-cli php8.2-mbstring php8.2-curl php8.2-xml php8.2-pgsql > /dev/null
88

9-
RUN apt-get install -y php8.1-dev libevent-dev > /dev/null
9+
RUN apt-get install -y php8.2-dev libevent-dev > /dev/null
1010
RUN wget http://pear.php.net/go-pear.phar --quiet && php go-pear.phar
11-
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.1/cli/conf.d/event.ini
11+
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.2/cli/conf.d/event.ini
1212

13-
COPY php-jit.ini /etc/php/8.1/cli/php.ini
13+
COPY php-jit.ini /etc/php/8.2/cli/php.ini
1414

1515
ADD ./ /mixphp
1616
WORKDIR /mixphp

frameworks/PHP/mixphp/mixphp.dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

55
RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
66
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
7-
RUN apt-get update -yqq && apt-get install -yqq git unzip wget curl build-essential nginx php8.1-fpm php8.1-mysql php8.1-dev > /dev/null
7+
RUN apt-get update -yqq && apt-get install -yqq git unzip wget curl build-essential nginx php8.2-fpm php8.2-mysql php8.2-dev > /dev/null
88

9-
COPY deploy/conf/* /etc/php/8.1/fpm/
9+
COPY deploy/conf/* /etc/php/8.2/fpm/
1010

11-
RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.1/fpm/php-fpm.conf ; fi;
11+
RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.2/fpm/php-fpm.conf ; fi;
1212

1313
ADD ./ /mixphp
1414
WORKDIR /mixphp
@@ -22,5 +22,5 @@ RUN chmod -R 777 /mixphp/runtime/logs
2222

2323
EXPOSE 8080
2424

25-
CMD service php8.1-fpm start && \
25+
CMD service php8.2-fpm start && \
2626
nginx -c /mixphp/deploy/nginx.conf

0 commit comments

Comments
 (0)