1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| FROM busybox AS wgeter
RUN wget -O /tmp/hc https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.19/grpc_health_probe-linux-amd64 \ && chmod +x /tmp/hc \ && mv /tmp/hc /bin/hc
FROM gcr.dockerproxy.com/distroless/static ENV TZ=Asia/Shanghai
COPY --from=wgeter /bin/wget /bin/wget COPY --from=wgeter /bin/hc /bin/hc
HEALTHCHECK --interval=5s --timeout=3s --start-period=5s --retries=3 CMD ["hc", "-addr=localhost:9000"]
|