File: Dockerfile

package info (click to toggle)
prometheus-ipmi-exporter 1.2.0+ds-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 232 kB
  • sloc: sh: 63; makefile: 36
file content (17 lines) | stat: -rw-r--r-- 552 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Build /go/bin/ipmi_exporter
FROM quay.io/prometheus/golang-builder:1.13-base AS builder
ADD . /go/src/github.com/soundcloud/ipmi_exporter/
RUN cd /go/src/github.com/soundcloud/ipmi_exporter && make

# Container image
FROM ubuntu:18.04
WORKDIR /
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

EXPOSE 9290
ENTRYPOINT ["/bin/ipmi_exporter"]
CMD ["--config.file", "/config.yml"]