libvirtd_exporter/Dockerfile
Mohammed Naser a3bb10846a initial commit
Change-Id: I2ec47c1f516a8c930360f0f13a11c651595e6e1c
2020-03-31 19:00:46 -04:00

15 lines
364 B
Docker

FROM golang:1.13.5 AS builder
WORKDIR /go/src/app
COPY . .
RUN apt-get update && \
apt-get -y install libvirt-dev && \
apt-get clean all
RUN go build
FROM golang:1.13.5
RUN apt-get update && \
apt-get -y install libvirt0 && \
apt-get clean all
COPY --from=builder /go/src/app/libvirtd_exporter /libvirtd_exporter
ENTRYPOINT ["/libvirtd_exporter"]