diff --git a/Dockerfile b/Dockerfile index b003249..76d1ab1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM golang:1.10.1 +FROM golang:1.11.1 RUN go get -d -v github.com/gree-gorey/bash-exporter/cmd/bash-exporter WORKDIR /go/src/github.com/gree-gorey/bash-exporter/cmd/bash-exporter RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o bash-exporter . -FROM alpine:3.7 +FROM alpine:3.10 WORKDIR /root/ COPY --from=0 /go/src/github.com/gree-gorey/bash-exporter/cmd/bash-exporter/bash-exporter . COPY ./examples/* /scripts/