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"]