| murgatroid99 | c3c3a8f | 2015-01-28 10:57:58 -0800 | [diff] [blame] | 1 | # Dockerfile for gRPC Node |
| 2 | FROM grpc/node_base |
| 3 | |
| 4 | # Update the C libary |
| 5 | RUN cd /var/local/git/grpc \ |
| 6 | && git pull --recurse-submodules \ |
| 7 | && git submodule update --init --recursive |
| 8 | |
| 9 | # Install the C core. |
| 10 | RUN make install_c -C /var/local/git/grpc |
| 11 | |
| 12 | RUN cd /var/local/git/grpc/src/node && npm install && node-gyp rebuild |
| 13 | |
| murgatroid99 | 47b30b0 | 2015-02-18 11:31:55 -0800 | [diff] [blame^] | 14 | # Add a cacerts directory containing the Google root pem file, allowing the |
| 15 | # ruby client to access the production test instance |
| 16 | ADD cacerts cacerts |
| 17 | |
| 18 | # Add a service_account directory containing the auth creds file |
| 19 | ADD service_account service_account |
| 20 | |
| murgatroid99 | ddfafe8 | 2015-02-03 12:26:51 -0800 | [diff] [blame] | 21 | CMD ["/usr/bin/nodejs", "/var/local/git/grpc/src/node/interop/interop_server.js", "--use_tls=true", "--port=8040"] |