diff options
author | Valery Piashchynski <[email protected]> | 2023-08-14 12:29:56 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2023-08-14 12:29:56 +0200 |
commit | 0a48c5557e6bfeada5fc143b138cd1b8ee6374d1 (patch) | |
tree | 7b545a58d96c1f64ad27600257f24dac0615bd5c /Dockerfile | |
parent | d5886b45fa3d8e65f6217f8f37fe848d6355c851 (diff) | |
parent | 67875c382435421951dacd17c8d7773d99257b47 (diff) |
Merge remote-tracking branch 'origin/master' into feature/sd_notify
Diffstat (limited to 'Dockerfile')
-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 |