Skip to content

Commit 9fe9e21

Browse files
authored
[php] Imi update to PHP 8.3 (#8589)
* [php] Imi update to PHP 8.3 * Faster composeser install * Remove change in hyperf
1 parent bfe3d6a commit 9fe9e21

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

frameworks/PHP/imi/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
3-
"imiphp/imi": "~2.1.0",
4-
"imiphp/imi-pgsql": "~2.1.0"
3+
"imiphp/imi": "~2.1",
4+
"imiphp/imi-pgsql": "~2.1"
55
},
66
"autoload": {
77
"psr-4" : {

frameworks/PHP/imi/imi-swoole.dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM php:8.2-cli
1+
FROM php:8.3-cli
22

3-
ENV SWOOLE_VERSION 5.1.0
3+
ENV SWOOLE_VERSION 5.1.1
44
ARG TFB_TEST_DATABASE
55
ENV TFB_TEST_DATABASE=${TFB_TEST_DATABASE}
66

@@ -22,7 +22,7 @@ RUN chmod -R ug+rwx /imi/.runtime
2222

2323
WORKDIR /imi
2424

25-
RUN curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
25+
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
2626
RUN composer install --no-dev --classmap-authoritative --quiet
2727
RUN composer require imiphp/imi-swoole:~2.1.0 -W
2828
RUN composer dumpautoload -o

frameworks/PHP/imi/imi-workerman.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.2-cli
1+
FROM php:8.3-cli
22

33
ARG TFB_TEST_DATABASE
44
ENV TFB_TEST_DATABASE=${TFB_TEST_DATABASE}
@@ -21,7 +21,7 @@ RUN chmod -R ug+rwx /imi/.runtime
2121

2222
WORKDIR /imi
2323

24-
RUN curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
24+
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
2525
RUN composer install --no-dev --classmap-authoritative --quiet
2626
RUN composer require imiphp/imi-workerman:~2.1.0 -W
2727
RUN composer dumpautoload -o

0 commit comments

Comments
 (0)