Skip to content

Instantly share code, notes, and snippets.

@iMega
Created September 24, 2018 06:08
Show Gist options
  • Save iMega/01b81ceecbc4a754cf0cc0bbdb4c0db5 to your computer and use it in GitHub Desktop.
Save iMega/01b81ceecbc4a754cf0cc0bbdb4c0db5 to your computer and use it in GitHub Desktop.
grpc_php_plugin
FROM grpc/php
RUN apt-get update && \
apt-get install --yes build-essential autoconf libtool zlib1g-dev zip unzip automake libtool pkg-config && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone -q --depth 1 --recursive -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc /root/grpc \
&& cd /root/grpc \
&& make grpc_php_plugin \
&& cp /root/grpc/bins/opt/grpc_php_plugin /usr/local/bin/ \
&& cd /usr/local/bin/ \
&& ln -s grpc_php_plugin protoc-gen-grpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment