diff --git a/src/currencyservice/Dockerfile b/src/currencyservice/Dockerfile index 142aa88..769e464 100644 --- a/src/currencyservice/Dockerfile +++ b/src/currencyservice/Dockerfile @@ -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" ] diff --git a/src/paymentservice/Dockerfile b/src/paymentservice/Dockerfile index 8119249..abe0eba 100644 --- a/src/paymentservice/Dockerfile +++ b/src/paymentservice/Dockerfile @@ -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" ]