From 5078f9aeac1e9974c9e760c0c3da16596a7324c7 Mon Sep 17 00:00:00 2001 From: Jayanring <81245047+Jayanring@users.noreply.github.com> Date: Thu, 6 Jul 2023 11:19:04 +0800 Subject: [PATCH] fix grpc probe (#86) Co-authored-by: Jayanring <956165026@qq.com> --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 708ab86..924f786 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,7 @@ RUN rustup component add rustfmt && \ apt-get update && \ apt-get install -y --no-install-recommends wget protobuf-compiler && \ apt-get clean && \ - rm -rf /var/lib/apt/lists/* && \ - GRPC_HEALTH_PROBE_VERSION=v0.4.15 && \ - 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 + rm -rf /var/lib/apt/lists/* COPY . /build/ RUN cargo build --release @@ -16,5 +13,5 @@ FROM debian:bullseye-slim RUN useradd -m chain USER chain COPY --from=buildstage /build/target/release/consensus /usr/bin/ -COPY --from=buildstage /bin/grpc_health_probe /usr/bin/ +COPY --from=ghcr.io/grpc-ecosystem/grpc-health-probe:v0.4.19 /ko-app/grpc-health-probe /usr/bin/ CMD ["consensus"]