Skip to content

Commit

Permalink
Merge pull request #13 from bavix/rez1dent3-patch-1
Browse files Browse the repository at this point in the history
golang 1.22
  • Loading branch information
rez1dent3 authored Feb 28, 2024
2 parents 89d880b + b4cd4d4 commit ef003dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_ARG_GO_VERSION=1.21
ARG BUILD_ARG_GO_VERSION=1.22
ARG BUILD_ARG_ALPINE_VERSION=3.19
FROM golang:${BUILD_ARG_GO_VERSION}-alpine${BUILD_ARG_ALPINE_VERSION} AS builder
RUN apk add --update --no-cache curl ca-certificates
Expand All @@ -9,7 +9,7 @@ COPY . .

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

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

FROM alpine:${BUILD_ARG_ALPINE_VERSION}
WORKDIR /
Expand Down

0 comments on commit ef003dd

Please sign in to comment.