aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/grpc_php_base/Dockerfile
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-03-27 14:31:49 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-03-27 14:31:49 -0700
commit80df992f98238dafb279b91fa9936e9207bb0d03 (patch)
tree4370be4e3dd726d51228ec05dddbf752dcb58c86 /tools/dockerfile/grpc_php_base/Dockerfile
parentce0268cab813190801bf1e0eb317cde105b4559d (diff)
Added composer commands to PHP Dockerfiles
Diffstat (limited to 'tools/dockerfile/grpc_php_base/Dockerfile')
-rw-r--r--tools/dockerfile/grpc_php_base/Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/dockerfile/grpc_php_base/Dockerfile b/tools/dockerfile/grpc_php_base/Dockerfile
index c58cccba74..3ed9b49089 100644
--- a/tools/dockerfile/grpc_php_base/Dockerfile
+++ b/tools/dockerfile/grpc_php_base/Dockerfile
@@ -64,9 +64,12 @@ RUN apt-get update && apt-get install -y \
sqlite3 \
zlib1g-dev
-# Install the version of PHP gRPC is tested against
ENV DEBIAN_FRONTEND noniteractive
+# Install composer
+RUN curl -sS https://getcomposer.org/installer | php
+RUN mv composer.phar /usr/local/bin/composer
+
# Download the patched PHP protobuf so that PHP gRPC clients can be generated
# from proto3 schemas.
RUN git clone https://github.com/murgatroid99/Protobuf-PHP.git /var/local/git/protobuf-php