aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/grpc_node/Dockerfile
blob: 08d060a8dea57966a01a18d77cffa48f79d86a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Dockerfile for gRPC Node
FROM grpc/node_base

# Pull the latest sources
RUN cd /var/local/git/grpc \
  && git pull --recurse-submodules \
  && git submodule update --init --recursive

# Prevent breaking the build if header files are added/removed.
RUN make clean -C /var/local/git/grpc

# Install the C core.
RUN make install_c -j12 -C /var/local/git/grpc

RUN cd /var/local/git/grpc/src/node && npm install && node-gyp rebuild

# Add a cacerts directory containing the Google root pem file, allowing the
# ruby client to access the production test instance
ADD cacerts cacerts

# Add a service_account directory containing the auth creds file
ADD service_account service_account

CMD ["/usr/bin/nodejs", "/var/local/git/grpc/src/node/interop/interop_server.js", "--use_tls=true", "--port=8040"]