From ffd6362a06df307874df9230b3e9394d9b037523 Mon Sep 17 00:00:00 2001 From: alissa-tung Date: Wed, 16 Mar 2022 18:14:51 +0800 Subject: [PATCH] Update Dockerfile example Signed-off-by: alissa-tung Co-authored-by: Cruise_Hua --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4da5f16..2627ff4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,15 @@ # This Dockerfile builds an image for a client_golang example. # # Use as (from the root for the client_golang repository): -# docker build -f examples/$name/Dockerfile -t prometheus/golang-example-$name . +# docker build -f Dockerfile -t prometheus/golang-example . + +# Run as +# docker run -P prometheus/golang-example /random +# or +# docker run -P prometheus/golang-example /simple + +# Test as +# curl $ip:$port/metrics # Builder image, where we build the example. FROM golang:1 AS builder