Skip to content

Commit

Permalink
Update gobuilder & fixed go binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
ainamori-iij committed Feb 19, 2021
1 parent a138b9a commit abf9350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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"]
Expand Down

0 comments on commit abf9350

Please sign in to comment.