From abf9350445db3aa45f9970858aa4c8fcfbd645d0 Mon Sep 17 00:00:00 2001 From: Akira Inamori Date: Fri, 19 Feb 2021 15:02:25 +0900 Subject: [PATCH] Update gobuilder & fixed go binary name --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1957f75..8d2ddc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build /go/bin/ipmi_exporter -FROM quay.io/prometheus/golang-builder:1.15-base AS builder +FROM quay.io/prometheus/golang-builder:latest AS builder ADD . /go/src/github.com/soundcloud/ipmi_exporter/ RUN cd /go/src/github.com/soundcloud/ipmi_exporter && make @@ -10,7 +10,7 @@ RUN apt-get update \ && apt-get install freeipmi-tools -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* -COPY --from=builder /go/src/github.com/soundcloud/ipmi_exporter/ipmi-exporter /bin/ipmi_exporter +COPY --from=builder /go/src/github.com/soundcloud/ipmi_exporter/ipmi_exporter /bin/ipmi_exporter EXPOSE 9290 ENTRYPOINT ["/bin/ipmi_exporter"]