aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/grpc_python_base/Dockerfile
blob: 01292c2e121fd0b89440b6853089e97386fbd635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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