diff --git a/frameworks/PHP/swoole/swoole-postgres.dockerfile b/frameworks/PHP/swoole/swoole-postgres.dockerfile index 0ab42af057f..2ef3b63f412 100644 --- a/frameworks/PHP/swoole/swoole-postgres.dockerfile +++ b/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 -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 \ && 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 \ && 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 \ && docker-php-ext-enable swoole_postgresql