Skip to content

Commit

Permalink
BAARC-98: add grpc health probe to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Jan 8, 2024
1 parent a0cd42f commit fdd0f26
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
FROM ubuntu:latest

RUN apt-get update && apt-get install ca-certificates -y && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install ca-certificates wget -y && apt-get clean && rm -rf /var/lib/apt/lists/*

COPY ./build/arc_linux_amd64 /service/arc

WORKDIR /service

# Add grpc_health_probe
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.24 && \
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

RUN chmod +x arc

EXPOSE 9090

CMD ["/service/arc"]
CMD ["/service/arc"]

0 comments on commit fdd0f26

Please sign in to comment.