Fix Dockerfile
This commit is contained in:
parent
198fd38043
commit
7c792da037
16
Dockerfile
16
Dockerfile
|
@ -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"]
|
||||||
|
|
Loading…
Reference in New Issue