You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Base Dockerfile for gRPC Node.
|
|
|
|
#
|
|
|
|
# Includes Node installation dependencies
|
|
|
|
FROM grpc/base
|
|
|
|
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup | bash -
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y nodejs
|
|
|
|
|
|
|
|
RUN npm install -g node-gyp
|
|
|
|
|
|
|
|
# Get the source from GitHub, this gets the protobuf library as well
|
|
|
|
RUN git clone git@github.com:grpc/grpc.git /var/local/git/grpc
|
|
|
|
RUN cd /var/local/git/grpc && \
|
|
|
|
git pull --recurse-submodules && \
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
|
|
|
# Build the C core
|
|
|
|
RUN make static_c shared_c -j12 -C /var/local/git/grpc
|
|
|
|
|
|
|
|
# Define the default command.
|
|
|
|
CMD ["bash"]
|