From ddcce5f33fe03130dbaca9db2df6184838464fb1 Mon Sep 17 00:00:00 2001 From: proxysna Date: Thu, 13 Feb 2020 14:40:57 +0300 Subject: [PATCH] Fix Docker build failure. Update golang image version. Go get compatibilty was fixed in https://github.com/golang/go/commit/fce993d1a27153271919db00d2f80b6839fcb326. Update Alpine image version. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/