Browse Source

[swoole-postgres] Update to PHP8 (#6296)

Joan Miquel 4 years ago
parent
commit
8d110ce812
1 changed files with 5 additions and 4 deletions
  1. 5 4
      frameworks/PHP/swoole/swoole-postgres.dockerfile

+ 5 - 4
frameworks/PHP/swoole/swoole-postgres.dockerfile

@@ -1,8 +1,9 @@
-FROM php:7.4
+FROM php:8.0-cli
 
 
 RUN docker-php-ext-install opcache  > /dev/null
 RUN docker-php-ext-install opcache  > /dev/null
 
 
-ENV SWOOLE_VERSION=4.5.1
+ENV SWOOLE_VERSION 4.6.1
+ENV SWOOLE_POSTGRES 4.6.1
 
 
 RUN     apt-get update && apt-get install -y libpq-dev \
 RUN     apt-get update && apt-get install -y libpq-dev \
         && cd /tmp && curl -sSL "https://github.com/swoole/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz" | tar xzf - \
         && cd /tmp && curl -sSL "https://github.com/swoole/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz" | tar xzf - \
@@ -10,8 +11,8 @@ RUN     apt-get update && apt-get install -y libpq-dev \
         && phpize && ./configure > /dev/null && make > /dev/null && make install > /dev/null \
         && phpize && ./configure > /dev/null && make > /dev/null && make install > /dev/null \
         && docker-php-ext-enable swoole
         && docker-php-ext-enable swoole
 
 
-RUN     cd /tmp && curl -sSL "https://github.com/swoole/ext-postgresql/archive/v${SWOOLE_VERSION}.tar.gz" | tar xzf - \
-        && cd ext-postgresql-${SWOOLE_VERSION} \
+RUN     cd /tmp && curl -sSL "https://github.com/swoole/ext-postgresql/archive/v${SWOOLE_POSTGRES}.tar.gz" | tar xzf - \
+        && cd ext-postgresql-${SWOOLE_POSTGRES} \
         && phpize && ./configure > /dev/null && make > /dev/null && make install > /dev/null \
         && phpize && ./configure > /dev/null && make > /dev/null && make install > /dev/null \
         && docker-php-ext-enable swoole_postgresql
         && docker-php-ext-enable swoole_postgresql