Skip to content

Commit

Permalink
fix grpc probe (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: Jayanring <956165026@qq.com>
  • Loading branch information
Jayanring and Jayanring authored Jul 6, 2023
1 parent 54a25ae commit 5078f9a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ 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

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

0 comments on commit 5078f9a

Please sign in to comment.