Fix Dockerfile

This commit is contained in:
Trey Dockendorf 2020-03-18 08:50:44 -04:00
parent 198fd38043
commit 7c792da037
1 changed files with 7 additions and 9 deletions

View File

@ -1,10 +1,8 @@
FROM golang:1.13 AS builder ARG ARCH="amd64"
RUN mkdir /build ARG OS="linux"
ADD . /build/ FROM quay.io/prometheus/busybox-${OS}-${ARCH}:glibc
WORKDIR /build ARG ARCH="amd64"
RUN make build ARG OS="linux"
COPY .build/${OS}-${ARCH}/cgroup_exporter /cgroup_exporter
FROM scratch EXPOSE 9306
WORKDIR /
COPY --from=builder /build/cgroup_exporter /cgroup_exporter
ENTRYPOINT ["/cgroup_exporter"] ENTRYPOINT ["/cgroup_exporter"]