Skip to content

Commit

Permalink
chore: go1.21 in Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Aug 9, 2023
1 parent bce42e6 commit 564538d
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,5 +1,5 @@
# Image page: <https://hub.docker.com/_/golang>
FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.20-alpine as builder
FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.21-alpine as builder

# app version and build date must be passed during image building (version without any prefix).
# e.g.: `docker build --build-arg "APP_VERSION=1.2.3" --build-arg "BUILD_TIME=$(date +%FT%T%z)" .`
Expand All @@ -18,7 +18,7 @@ ENV LDFLAGS="-s \
# compile binary file
RUN set -x
RUN go mod download
RUN go mod tidy
RUN go mod tidy -go 1.21
RUN CGO_ENABLED=0 go build -pgo=roadrunner.pprof -trimpath -ldflags "$LDFLAGS" -o ./rr ./cmd/rr
RUN ./rr -v

Expand Down

0 comments on commit 564538d

Please sign in to comment.