switch to php8.3 and add amqp as pecl dependency
This commit is contained in:
parent
0cee0637c9
commit
40770834a3
@ -1,12 +1,13 @@
|
|||||||
FROM php:8.2-fpm-alpine AS chill_base_php82
|
FROM php:8.3-fpm-alpine AS chill_base_php82
|
||||||
|
|
||||||
ENV POSTGRES_VERSION 14
|
ENV POSTGRES_VERSION=14
|
||||||
|
|
||||||
# default UID for the PHP user
|
# default UID for the PHP user
|
||||||
ARG UID=1000
|
ARG UID=1000
|
||||||
ARG GID=1000
|
ARG GID=1000
|
||||||
|
|
||||||
# install php extensions and deps
|
# install php extensions and deps
|
||||||
|
# apk add --no-cache --update --virtual rabbitmq-c-dev rabbitmq-c-utils gcc g++ make autoconf && pecl install amqp
|
||||||
RUN apk update && apk add --no-cache \
|
RUN apk update && apk add --no-cache \
|
||||||
wget gnupg \
|
wget gnupg \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
@ -16,6 +17,7 @@ RUN apk update && apk add --no-cache \
|
|||||||
linux-headers \
|
linux-headers \
|
||||||
gcc g++ make autoconf \
|
gcc g++ make autoconf \
|
||||||
bash git \
|
bash git \
|
||||||
|
rabbitmq-c rabbitmq-c-dev \
|
||||||
&& docker-php-ext-install pdo_pgsql intl mbstring zip bcmath exif sockets \
|
&& docker-php-ext-install pdo_pgsql intl mbstring zip bcmath exif sockets \
|
||||||
&& git clone https://github.com/nikic/php-ast.git \
|
&& git clone https://github.com/nikic/php-ast.git \
|
||||||
&& cd php-ast \
|
&& cd php-ast \
|
||||||
@ -26,6 +28,8 @@ RUN apk update && apk add --no-cache \
|
|||||||
&& cd .. && rm -rf php-ast \
|
&& cd .. && rm -rf php-ast \
|
||||||
&& pecl install redis \
|
&& pecl install redis \
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
|
&& pecl install amqp \
|
||||||
|
&& docker-php-ext-enable amqp \
|
||||||
&& apk add libpng-dev libjpeg-turbo-dev freetype-dev \
|
&& apk add libpng-dev libjpeg-turbo-dev freetype-dev \
|
||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||||
&& docker-php-ext-install -j$(nproc) gd \
|
&& docker-php-ext-install -j$(nproc) gd \
|
||||||
|
Loading…
Reference in New Issue
Block a user