forked from mirror/client_golang
Merge pull request #628 from tariq1890/docker
add minor Dockerfile improvements
This commit is contained in:
commit
c0dfcd145f
|
@ -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"]
|
||||||
|
|
Loading…
Reference in New Issue