From aff2f871c284d5dc86196108eb7b896948994191 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 8 Feb 2024 08:41:34 +0100 Subject: [PATCH] chore: update Golang in the Dockerfile Signed-off-by: Valery Piashchynski --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1bafe1747..c0de4f243 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Image page: -FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.21-alpine as builder +FROM --platform=${TARGETPLATFORM:-linux/amd64} golang:1.22-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)" .` @@ -18,7 +18,7 @@ ENV LDFLAGS="-s \ # compile binary file RUN set -x RUN go mod download -RUN go mod tidy -go 1.21 +RUN go mod tidy -go 1.22 RUN CGO_ENABLED=0 go build -pgo=roadrunner.pprof -trimpath -ldflags "$LDFLAGS" -o ./rr ./cmd/rr RUN ./rr -v