File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Base stage, sets up the GRPC Health Probe, we use a ubuntu image because no devcontainer features work on alpine
2
2
ARG GO_VERSION
3
+ FROM golang:${GO_VERSION} AS builder_base
4
+
5
+ # Needed to get the right grpc_health_probe binary
3
6
ARG TARGETOS
4
7
ARG TARGETARCH
5
- FROM golang:${GO_VERSION} AS builder_base
6
8
7
9
WORKDIR /app
8
10
9
11
# Install gRPC Health Probe
10
12
RUN set -ex \
11
- && curl -fSL "https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.19/grpc_health_probe-$TARGETOS-$ TARGETARCH -o /usr/local/bin/grpc_health_probe" \
13
+ && curl -fSL "https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.19/grpc_health_probe-${ TARGETOS}-${ TARGETARCH}" -o /usr/local/bin/grpc_health_probe \
12
14
&& chmod +x /usr/local/bin/grpc_health_probe
13
15
14
16
# ######################################################
@@ -51,7 +53,7 @@ ENTRYPOINT [ "./docker/test-container.sh" ]
51
53
# Builds the production binary
52
54
FROM golang:${GO_VERSION}-alpine AS builder_production
53
55
54
- WORKDIR /app
56
+ WORKDIR /app
55
57
56
58
# Go dependencies
57
59
COPY go.mod go.sum ./
You can’t perform that action at this time.
0 commit comments