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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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