Skip to content

Commit 559067b

Browse files
joanheyfranz1981
authored andcommitted
[php] Update h2o platform to PHP 8.2 (TechEmpower#7940)
TechEmpower#7703
1 parent 096cc56 commit 559067b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frameworks/PHP/php/php-h2o.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ RUN apt-get update > /dev/null && \
1212
### Install php
1313
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null
1414
RUN apt-get update -yqq > /dev/null && \
15-
apt-get install -yqq php8.1 php8.1-common php8.1-cli php8.1-fpm php8.1-mysql > /dev/null
15+
apt-get install -yqq php8.2 php8.2-common php8.2-cli php8.2-fpm php8.2-mysql > /dev/null
1616

17-
COPY deploy/conf/* /etc/php/8.1/fpm/
17+
COPY deploy/conf/* /etc/php/8.2/fpm/
1818

19-
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;
19+
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;
2020

2121
### Install h2o
2222

@@ -35,5 +35,5 @@ EXPOSE 8080
3535

3636
CMD export WORKERS=$(( 2 * $(nproc) )) && \
3737
sed -i "s/num-threads: x/num-threads: $WORKERS/g" /deploy/h2o.conf && \
38-
service php8.1-fpm start && \
38+
service php8.2-fpm start && \
3939
/h2o/bin/h2o -c /deploy/h2o.conf

0 commit comments

Comments
 (0)