aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/grpc_cxx/Dockerfile
blob: ea3a1dba8f1793067001757ed2509bf2ce2837d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Dockerfile for gRPC C++
FROM grpc/base

# Get the source from GitHub
RUN git clone git@github.com:google/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \
  git pull --recurse-submodules && \
  git submodule update --init --recursive

# Build the protobuf library; then the C core.
RUN cd /var/local/git/grpc/third_party/protobuf && \
  ./autogen.sh && \
  ./configure --prefix=/usr && \
  make -j12 && make check && make install && make clean
RUN make install -C /var/local/git/grpc

# Define the default command.
CMD ["bash"]