From 386f46670e5a804efcd8731b96b5f1435197e0ba Mon Sep 17 00:00:00 2001 From: Robin Clarke-Williams <43950815+robincw-gr@users.noreply.github.com> Date: Fri, 4 Oct 2019 14:20:55 +0100 Subject: [PATCH] Make grpc-health-probe repo an ARG in Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c933933..dd9183c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,8 @@ RUN go build -mod=vendor -ldflags '-extldflags "-static"' -o geras ./cmd/geras/m FROM alpine WORKDIR /bin COPY --from=build-env /src/geras /bin/ +ARG grpc-health-probe-repo-url=https://github.com/grpc-ecosystem/grpc-health-probe 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 && \ + wget -qO/bin/grpc_health_probe ${grpc-health-probe-repo-url}/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ chmod +x /bin/grpc_health_probe ENTRYPOINT ["./geras"]