We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ca1262 + 170969f commit da2e422Copy full SHA for da2e422
Dockerfile
@@ -1,4 +1,4 @@
1
-ARG BUILD_ARG_GO_VERSION=1.21
+ARG BUILD_ARG_GO_VERSION=1.22
2
ARG BUILD_ARG_ALPINE_VERSION=3.19
3
FROM golang:${BUILD_ARG_GO_VERSION}-alpine${BUILD_ARG_ALPINE_VERSION} AS builder
4
RUN apk add --update --no-cache curl ca-certificates
@@ -9,7 +9,7 @@ COPY . .
9
10
RUN curl "https://raw.githubusercontent.com/grpc/grpc-go/master/examples/helloworld/greeter_client/main.go" -o main.go
11
12
-RUN go mod tidy && go build -o greeter
+RUN go mod tidy && go build -ldflags "-s -w" -o greeter
13
14
FROM alpine:${BUILD_ARG_ALPINE_VERSION}
15
WORKDIR /
0 commit comments