add minor Dockerfile improvements

Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
This commit is contained in:
Tariq Ibrahim 2019-07-30 18:14:08 -07:00
parent 8bb84c10f1
commit 8977247c4e
No known key found for this signature in database
GPG Key ID: DFC94E4A008B908A
1 changed files with 2 additions and 2 deletions

View File

@ -15,9 +15,9 @@ WORKDIR /go/src/github.com/prometheus/client_golang/examples/simple
RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w'
# Final image.
FROM prom/busybox
FROM quay.io/prometheus/busybox:latest
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
COPY --from=builder /go/src/github.com/prometheus/client_golang/examples/random \
/go/src/github.com/prometheus/client_golang/examples/simple ./
EXPOSE 8080
CMD echo Please run an example. Either /random or /simple
CMD ["echo", "Please run an example. Either /random or /simple"]