Skip to content

Commit 663890c

Browse files
committed
tweaking grpc compile args
1 parent 4969c08 commit 663890c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ RUN git clone --depth 1 https://github.com/grpc/grpc.git . \
1818
&& git submodule update --init --recursive --depth 1 \
1919
&& mkdir -p cmake/build && cd cmake/build \
2020
# Build the C++ Core (Static Lib)
21-
&& cmake ../.. -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF \
21+
&& cmake ../.. -DCMAKE_BUILD_TYPE=Release -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF -DgRPC_PHP_SATELLITE_SERVICES=ON \
2222
&& make -j$(nproc) \
2323
&& make install \
24+
&& ldconfig \
2425
# Build the PHP Extension, providing the path to the C++ core libs
2526
&& cd ../../src/php/ext/grpc \
2627
&& phpize \
27-
&& ./configure --with-grpc=/usr/local \
28+
&& ./configure --with-grpc \
2829
&& make -j$(nproc) \
2930
&& cp modules/grpc.so /tmp/grpc.so
3031

0 commit comments

Comments
 (0)