From fdd0f2645ded18efec908b2a24b36faaa4bd1067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=B6ckli?= Date: Mon, 8 Jan 2024 17:10:01 +0100 Subject: [PATCH] BAARC-98: add grpc health probe to Dockerfile --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 10b5d8dba..8aea5ec73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,18 @@ FROM ubuntu:latest -RUN apt-get update && apt-get install ca-certificates -y && apt-get clean && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install ca-certificates wget -y && apt-get clean && rm -rf /var/lib/apt/lists/* COPY ./build/arc_linux_amd64 /service/arc WORKDIR /service +# Add grpc_health_probe +RUN GRPC_HEALTH_PROBE_VERSION=v0.4.24 && \ + 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 + RUN chmod +x arc EXPOSE 9090 -CMD ["/service/arc"] \ No newline at end of file +CMD ["/service/arc"]