Skip to content

Commit

Permalink
Use latest grpc version for php 8.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
en-jschuetze authored Nov 27, 2023
1 parent 9a14776 commit bbe162a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ ARG PHP_PACKAGE_BASENAME="php83"
ARG PHP_FPM_BINARY_PATH="/usr/sbin/php-fpm83"
ARG UNIT_VERSION="1.31.1"
ARG APACHE2_VERSION="2.4.58"
ARG GRPC_EXTENSION_VERSION="1.51.1"
ARG GRPC_EXTENSION_REPOSITORY="http://dl-cdn.alpinelinux.org/alpine/edge/testing"
ENV PHP_VERSION=$PHP_VERSION
ENV PHP_PACKAGE_BASENAME=$PHP_PACKAGE_BASENAME
ENV PHP_FPM_BINARY_PATH=$PHP_FPM_BINARY_PATH
ENV UNIT_VERSION=$UNIT_VERSION
ENV APACHE2_VERSION=$APACHE2_VERSION
ENV GRPC_EXTENSION_VERSION=$GRPC_EXTENSION_VERSION
ENV GRPC_EXTENSION_REPOSITORY=$GRPC_EXTENSION_REPOSITORY

RUN apk upgrade -U # 2023/01/05 to fix CVE-2022-3994

Expand Down Expand Up @@ -105,7 +101,7 @@ RUN apk add --no-cache ${PHP_PACKAGE_BASENAME}-zip

# FIXME: RUN apk add --no-cache ${PHP_PACKAGE_BASENAME}-pecl-grpc~=$GRPC_EXTENSION_VERSION --repository $GRPC_EXTENSION_REPOSITORY
RUN apk add --no-cache binutils build-base openssl-dev autoconf pcre2-dev automake libtool linux-headers ${PHP_PACKAGE_BASENAME}-dev~=${PHP_VERSION} --virtual .build-deps \
&& MAKEFLAGS="-j $(nproc)" pecl83 install grpc-1.58.0 \
&& MAKEFLAGS="-j $(nproc)" pecl83 install grpc \
&& strip --strip-all /usr/lib/$PHP_PACKAGE_BASENAME/modules/grpc.so \
&& echo "extension=grpc" > /etc/$PHP_PACKAGE_BASENAME/conf.d/grpc.ini \
&& apk del --no-network .build-deps
Expand Down

0 comments on commit bbe162a

Please sign in to comment.