Skip to content

Commit 1adf780

Browse files
authored
[php] Mixphp update to PHP 8.3 (#8593)
1 parent 52a9d34 commit 1adf780

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

frameworks/PHP/mixphp/mixphp-swoole-mysql.dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.0-cli
1+
FROM php:8.3-cli
22

33
RUN pecl install swoole > /dev/null && docker-php-ext-enable swoole
44

@@ -18,7 +18,7 @@ RUN php -v && php -i | grep opcache
1818

1919
WORKDIR /mixphp
2020

21-
RUN curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
21+
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
2222
RUN composer install --no-dev --classmap-authoritative --quiet > /dev/null
2323
RUN composer dumpautoload -o
2424

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
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-mysql > /dev/null
7+
RUN apt-get update -yqq && apt-get install -yqq git unzip wget curl build-essential php8.3-cli php8.3-mbstring php8.3-curl php8.3-xml php8.3-mysql > /dev/null
88

9-
RUN apt-get install -y php8.1-dev libevent-dev > /dev/null
9+
RUN apt-get install -y php8.3-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.3/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.3/cli/php.ini
1414

1515
ADD ./ /mixphp
1616
WORKDIR /mixphp
1717

18-
RUN curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
18+
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
1919
RUN composer install --no-dev --classmap-authoritative --quiet > /dev/null
2020
RUN composer dumpautoload -o
2121

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ 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.2-cli php8.2-mbstring php8.2-curl php8.2-xml php8.2-pgsql > /dev/null
7+
RUN apt-get update -yqq && apt-get install -yqq git unzip wget curl build-essential php8.3-cli php8.3-mbstring php8.3-curl php8.3-xml php8.3-pgsql > /dev/null
88

9-
RUN apt-get install -y php8.2-dev libevent-dev > /dev/null
9+
RUN apt-get install -y php8.3-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.2/cli/conf.d/event.ini
11+
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.3/cli/conf.d/event.ini
1212

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

1515
ADD ./ /mixphp
1616
WORKDIR /mixphp
1717

1818
RUN sed -i "s|Benchmark();|BenchmarkRaw();|g" /mixphp/routes/index.php
1919

20-
RUN curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
20+
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
2121
RUN composer install --no-dev --classmap-authoritative --quiet > /dev/null
2222
RUN composer dumpautoload -o
2323

frameworks/PHP/mixphp/mixphp.dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ 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.2-fpm php8.2-mysql php8.2-dev > /dev/null
7+
RUN apt-get update -yqq && apt-get install -yqq git unzip wget curl build-essential nginx php8.3-fpm php8.3-mysql php8.3-dev > /dev/null
88

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

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;
11+
RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.3/fpm/php-fpm.conf ; fi;
1212

1313
ADD ./ /mixphp
1414
WORKDIR /mixphp
1515

16-
RUN curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
16+
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
1717
RUN composer install --no-dev --classmap-authoritative --quiet > /dev/null
1818
RUN composer dumpautoload -o
1919

@@ -22,5 +22,5 @@ RUN chmod -R 777 /mixphp/runtime/logs
2222

2323
EXPOSE 8080
2424

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

0 commit comments

Comments
 (0)