update dockerfiles with released health probe

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-09-19 11:25:35 -07:00
parent 8df8868bdc
commit 64dbce0f48
No known key found for this signature in database
GPG key ID: 5C02521D7B216AD6
2 changed files with 6 additions and 6 deletions

View file

@ -1,9 +1,10 @@
FROM gcr.io/microservices-demo-app/grpc-health-probe:1.0 AS probe
FROM node:8
RUN GRPC_HEALTH_PROBE_VERSION=v0.1.0-alpha.1 && \
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
chmod +x /bin/grpc_health_probe
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --only=production
COPY . .
COPY --from=probe /bin/grpc_health_probe /bin/grpc_health_probe
EXPOSE 7000
CMD [ "node", "server.js" ]

View file

@ -1,6 +1,7 @@
FROM gcr.io/microservices-demo-app/grpc-health-probe:1.0 AS probe
FROM node:8
RUN GRPC_HEALTH_PROBE_VERSION=v0.1.0-alpha.1 && \
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
chmod +x /bin/grpc_health_probe
WORKDIR /usr/src/app
@ -10,8 +11,6 @@ RUN npm install --only=production
COPY . .
COPY --from=probe /bin/grpc_health_probe /bin/grpc_health_probe
EXPOSE 50051
CMD [ "node", "index.js" ]