forked from Budry/cadvisor-arm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (19 loc) · 802 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Builder
FROM arm32v7/golang as builder
ENV CADVISOR_VERSION "v0.37.0"
RUN apt-get update && apt-get install -y git dmsetup && apt-get clean
RUN git clone --branch ${CADVISOR_VERSION} https://github.com/google/cadvisor.git /go/src/github.com/google/cadvisor
WORKDIR /go/src/github.com/google/cadvisor
RUN make build
# Image for usage
FROM arm32v7/debian
COPY --from=builder /go/src/github.com/google/cadvisor/cadvisor /usr/bin/cadvisor
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/dcorto/cadvisor-arm" \
org.label-schema.schema-version="1.0"
EXPOSE 8080
ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]