Skip to content

Commit f1a29af

Browse files
authored
Upgrade to php 8.2.2 (#14)
* Upgrade to php 8.2.2 * Workaround to make broken librabbitmq.pc in 0.12.0 working
1 parent 77137a8 commit f1a29af

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ FROM --platform=${BUILDPLATFORM} alpine:edge
3333

3434
ARG TARGETPLATFORM
3535

36-
ARG PHP_VERSION="8.2.1"
36+
ARG PHP_VERSION="8.2.2"
3737
ARG PHP_PACKAGE_BASENAME="php82"
3838
ARG PHP_FPM_BINARY_PATH="/usr/sbin/php-fpm82"
3939
ARG UNIT_VERSION="1.29.0"
@@ -111,7 +111,10 @@ RUN apk add --no-cache ${PHP_PACKAGE_BASENAME}-pdo_sqlite
111111
RUN apk add --no-cache ${PHP_PACKAGE_BASENAME}-pear
112112

113113
# FIXME: RUN apk add --no-cache ${PHP_PACKAGE_BASENAME}-pecl-amqp
114+
# FIXME: remove version sed as soon as rabbitmq-c 0.13.0 is available in alpine
115+
# hadolint ignore=DL4006
114116
RUN apk add --no-cache binutils build-base openssl-dev autoconf pcre2-dev automake libtool linux-headers rabbitmq-c-dev ${PHP_PACKAGE_BASENAME}-dev~=${PHP_VERSION} --virtual .build-deps \
117+
&& sed -i "s/Version: \$/Version: $(apk list rabbitmq-c | cut -f 3 -d '-')/g" /usr/lib/pkgconfig/librabbitmq.pc \
115118
&& MAKEFLAGS="-j $(nproc)" pecl82 install amqp \
116119
&& strip --strip-all /usr/lib/$PHP_PACKAGE_BASENAME/modules/amqp.so \
117120
&& echo "extension=amqp" > /etc/$PHP_PACKAGE_BASENAME/conf.d/00_amqp.ini \
@@ -273,4 +276,4 @@ RUN mkdir -p /usr/src/app
273276
RUN chown -R www-data:www-data /usr/src/app
274277
WORKDIR /usr/src/app
275278

276-
USER www-data
279+
USER www-data

0 commit comments

Comments
 (0)