Chore: Fix prometheus docker block (#54388)

This commit is contained in:
Marcus Efraimsson
2022-08-29 14:42:46 +02:00
committed by GitHub
parent 990f673202
commit 9ff2b33ff1
@@ -3,7 +3,7 @@
# Builder image, where we build the example.
FROM golang:1.17 AS builder
# Download prometheus/client_golang/examples/random first
RUN CGO_ENABLED=0 GOOS=linux go install -tags netgo -ldflags '-w' github.com/prometheus/client_golang/examples/random@latest
RUN CGO_ENABLED=0 GOOS=linux go install -tags netgo -ldflags '-w' github.com/prometheus/client_golang/examples/random@v1.12.2
# Final image.
FROM scratch