blob: ea3a1dba8f1793067001757ed2509bf2ce2837d0 [file] [log] [blame]
Nicolas Nobleddef2462015-01-06 18:08:25 -08001# Dockerfile for gRPC C++
2FROM grpc/base
3
Tim Emiolad2130c32015-01-21 09:51:45 -08004# Get the source from GitHub
5RUN git clone git@github.com:google/grpc.git /var/local/git/grpc
6RUN cd /var/local/git/grpc && \
7 git pull --recurse-submodules && \
8 git submodule update --init --recursive
Nicolas Nobleddef2462015-01-06 18:08:25 -08009
Tim Emiolad2130c32015-01-21 09:51:45 -080010# Build the protobuf library; then the C core.
11RUN cd /var/local/git/grpc/third_party/protobuf && \
12 ./autogen.sh && \
13 ./configure --prefix=/usr && \
14 make -j12 && make check && make install && make clean
Nicolas Nobleddef2462015-01-06 18:08:25 -080015RUN make install -C /var/local/git/grpc
16
17# Define the default command.
Tim Emiolad2130c32015-01-21 09:51:45 -080018CMD ["bash"]