Skip to content

Commit da2e422

Browse files
authored
Merge pull request #14 from bavix/rez1dent3-patch-1
golang 1.22
2 parents 2ca1262 + 170969f commit da2e422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BUILD_ARG_GO_VERSION=1.21
1+
ARG BUILD_ARG_GO_VERSION=1.22
22
ARG BUILD_ARG_ALPINE_VERSION=3.19
33
FROM golang:${BUILD_ARG_GO_VERSION}-alpine${BUILD_ARG_ALPINE_VERSION} AS builder
44
RUN apk add --update --no-cache curl ca-certificates
@@ -9,7 +9,7 @@ COPY . .
99

1010
RUN curl "https://raw.githubusercontent.com/grpc/grpc-go/master/examples/helloworld/greeter_client/main.go" -o main.go
1111

12-
RUN go mod tidy && go build -o greeter
12+
RUN go mod tidy && go build -ldflags "-s -w" -o greeter
1313

1414
FROM alpine:${BUILD_ARG_ALPINE_VERSION}
1515
WORKDIR /

0 commit comments

Comments
 (0)