forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
504 B
13 lines
504 B
# This Dockerfile builds an image for a client_golang example.
|
|
|
|
# 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
|
|
|
|
# Final image.
|
|
FROM scratch
|
|
LABEL maintainer "The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
|
COPY --from=builder /go/bin/random .
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/random"]
|
|
|