aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/grpc_python_base/Dockerfile
diff options
context:
space:
mode:
authorGravatar Nathaniel Manista <nathaniel@google.com>2015-02-15 01:21:53 +0000
committerGravatar Nathaniel Manista <nathaniel@google.com>2015-02-15 01:21:53 +0000
commitd4cb0d649c3c4c6b0fa8094629d728f24c419597 (patch)
tree1e0fa5d253c1e734d10f15b3bfb6d7d680be2cae /tools/dockerfile/grpc_python_base/Dockerfile
parent1d1f952731887521117b863625d60da05a85aec8 (diff)
Add Docker files for Python.
Diffstat (limited to 'tools/dockerfile/grpc_python_base/Dockerfile')
-rw-r--r--tools/dockerfile/grpc_python_base/Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/dockerfile/grpc_python_base/Dockerfile b/tools/dockerfile/grpc_python_base/Dockerfile
new file mode 100644
index 0000000000..01292c2e12
--- /dev/null
+++ b/tools/dockerfile/grpc_python_base/Dockerfile
@@ -0,0 +1,20 @@
+# Base Dockerfile for GRPC Python.
+#
+# Includes Python environment and installation dependencies.
+FROM grpc/base
+
+# Allows 'source' to work
+RUN rm /bin/sh && ln -s /bin/bash /bin/sh
+
+# Install Python development
+RUN apt-get update && apt-get install -y \
+ python-all-dev \
+ python3-all-dev \
+ python-pip \
+ python-virtualenv \
+
+# Install Python packages from PyPI
+RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.0.0-alpha-1
+
+# Get the GRPC source from GitHub
+RUN git clone --recursive git@github.com:google/grpc.git /var/local/git/grpc