summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2023-06-27 02:01:47 +0200
committerValery Piashchynski <[email protected]>2023-06-27 02:01:47 +0200
commit89054b44f7ed01013c15cf6f0b89762290224c7a (patch)
tree76ee0c66031e167f0527d5b68c95d8648cc8187f /Dockerfile
parentf156c45a3003a31288fbc6528022fe8257fd478f (diff)
chore: use pgo for the RR builds
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index d45801c9..d205813b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,7 +19,7 @@ ENV LDFLAGS="-s \
RUN set -x
RUN go mod download
RUN go mod tidy
-RUN CGO_ENABLED=0 go build -trimpath -ldflags "$LDFLAGS" -o ./rr ./cmd/rr
+RUN CGO_ENABLED=0 go build -pgo=roadrunner.pprof -trimpath -ldflags "$LDFLAGS" -o ./rr ./cmd/rr
RUN ./rr -v
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3