switch to php8.3 and add amqp as pecl dependency

This commit is contained in:
Julien Fastré 2024-07-18 10:38:44 +02:00
parent 0cee0637c9
commit 40770834a3
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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
ARG UID=1000
ARG GID=1000
# 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 \
wget gnupg \
libpq-dev \
@ -16,6 +17,7 @@ RUN apk update && apk add --no-cache \
linux-headers \
gcc g++ make autoconf \
bash git \
rabbitmq-c rabbitmq-c-dev \
&& docker-php-ext-install pdo_pgsql intl mbstring zip bcmath exif sockets \
&& git clone https://github.com/nikic/php-ast.git \
&& cd php-ast \
@ -26,6 +28,8 @@ RUN apk update && apk add --no-cache \
&& cd .. && rm -rf php-ast \
&& pecl install redis \
&& docker-php-ext-enable redis \
&& pecl install amqp \
&& docker-php-ext-enable amqp \
&& apk add libpng-dev libjpeg-turbo-dev freetype-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \