diff options
author | Valery Piashchynski <[email protected]> | 2023-08-09 20:57:14 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2023-08-09 20:57:14 +0200 |
commit | 564538df4bf01444474b77cf6ea69db175f760f0 (patch) | |
tree | 5ac4100431a25a045d965f789cd2ddd1911f8a2f | |
parent | bce42e63b78eae874b84178f838d8f908c438298 (diff) |
chore: go1.21 in Dockerfile
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)" .` @@ -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 |