Skip to content

Commit

Permalink
Add grpc_health_probe to image using wget.
Browse files Browse the repository at this point in the history
  • Loading branch information
robincw-gr committed Oct 2, 2019
1 parent d9a6871 commit b27a03e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN go build -mod=vendor -ldflags '-extldflags "-static"' -o geras ./cmd/geras/m

# final stage
FROM alpine
WORKDIR /app
COPY --from=build-env /src/geras /app/
WORKDIR /bin
COPY --from=build-env /src/geras /bin/
RUN GRPC_HEALTH_PROBE_VERSION=v0.3.0 && \
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
ENTRYPOINT ["./geras"]

0 comments on commit b27a03e

Please sign in to comment.