Merge pull request #628 from tariq1890/docker

add minor Dockerfile improvements
This commit is contained in:
Björn Rabenstein 2019-07-31 18:24:48 +02:00 committed by GitHub
commit c0dfcd145f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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' RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w'
# Final image. # Final image.
FROM prom/busybox FROM quay.io/prometheus/busybox:latest
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>" LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
COPY --from=builder /go/src/github.com/prometheus/client_golang/examples/random \ COPY --from=builder /go/src/github.com/prometheus/client_golang/examples/random \
/go/src/github.com/prometheus/client_golang/examples/simple ./ /go/src/github.com/prometheus/client_golang/examples/simple ./
EXPOSE 8080 EXPOSE 8080
CMD echo Please run an example. Either /random or /simple CMD ["echo", "Please run an example. Either /random or /simple"]