a3bb10846a
Change-Id: I2ec47c1f516a8c930360f0f13a11c651595e6e1c
15 lines
364 B
Docker
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"]
|