summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2024-02-08 08:41:34 +0100
committerValery Piashchynski <[email protected]>2024-02-08 08:41:34 +0100
commitaff2f871c284d5dc86196108eb7b896948994191 (patch)
tree8426d8990a92d8dac72a775a382ea528004cdb24 /Dockerfile
parentc0926a37ee6bd232e9617e7bb5d2c0082f4fe9b6 (diff)
chore: update Golang in the Dockerfile
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 1bafe174..c0de4f24 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
# Image page: <https://hub.docker.com/_/golang>
-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