Browse Source

[php] Imi update to PHP 8.3 (#8589)

* [php] Imi update to PHP 8.3

* Faster composeser install

* Remove change in hyperf
Joan Miquel 1 year ago
parent
commit
9fe9e211b0

+ 2 - 2
frameworks/PHP/imi/composer.json

@@ -1,7 +1,7 @@
 {
     "require": {
-        "imiphp/imi": "~2.1.0",
-        "imiphp/imi-pgsql": "~2.1.0"
+        "imiphp/imi": "~2.1",
+        "imiphp/imi-pgsql": "~2.1"
     },
     "autoload": {
         "psr-4" : {

+ 3 - 3
frameworks/PHP/imi/imi-swoole.dockerfile

@@ -1,6 +1,6 @@
-FROM php:8.2-cli
+FROM php:8.3-cli
 
-ENV SWOOLE_VERSION 5.1.0
+ENV SWOOLE_VERSION 5.1.1
 ARG TFB_TEST_DATABASE
 ENV TFB_TEST_DATABASE=${TFB_TEST_DATABASE}
 
@@ -22,7 +22,7 @@ RUN chmod -R ug+rwx /imi/.runtime
 
 WORKDIR /imi
 
-RUN curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
+COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
 RUN composer install --no-dev --classmap-authoritative --quiet
 RUN composer require imiphp/imi-swoole:~2.1.0 -W
 RUN composer dumpautoload -o

+ 2 - 2
frameworks/PHP/imi/imi-workerman.dockerfile

@@ -1,4 +1,4 @@
-FROM php:8.2-cli
+FROM php:8.3-cli
 
 ARG TFB_TEST_DATABASE
 ENV TFB_TEST_DATABASE=${TFB_TEST_DATABASE}
@@ -21,7 +21,7 @@ RUN chmod -R ug+rwx /imi/.runtime
 
 WORKDIR /imi
 
-RUN curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
+COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
 RUN composer install --no-dev --classmap-authoritative --quiet
 RUN composer require imiphp/imi-workerman:~2.1.0 -W
 RUN composer dumpautoload -o