From 7c792da0374b856fad9a5a965928bc8ebd616b17 Mon Sep 17 00:00:00 2001 From: Trey Dockendorf Date: Wed, 18 Mar 2020 08:50:44 -0400 Subject: [PATCH] Fix Dockerfile --- Dockerfile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index a5253ed..aaef86e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,8 @@ -FROM golang:1.13 AS builder -RUN mkdir /build -ADD . /build/ -WORKDIR /build -RUN make build - -FROM scratch -WORKDIR / -COPY --from=builder /build/cgroup_exporter /cgroup_exporter +ARG ARCH="amd64" +ARG OS="linux" +FROM quay.io/prometheus/busybox-${OS}-${ARCH}:glibc +ARG ARCH="amd64" +ARG OS="linux" +COPY .build/${OS}-${ARCH}/cgroup_exporter /cgroup_exporter +EXPOSE 9306 ENTRYPOINT ["/cgroup_exporter"]