We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088c22b commit fad61ffCopy full SHA for fad61ff
server/deploy/Dockerfile
@@ -4,15 +4,12 @@ RUN apk --no-cache add ca-certificates && GRPC_HEALTH_PROBE_VERSION=v0.4.2 && \
4
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 && \
5
chmod +x /bin/grpc_health_probe
6
7
-RUN apk add upx
8
-
9
WORKDIR /src/
10
COPY go.mod .
11
COPY go.sum .
12
RUN go mod download
13
COPY . .
14
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-w -s" -o server cmd/server/main.go
15
-RUN upx server
16
17
FROM gcr.io/distroless/static:nonroot
18
0 commit comments