cadvisor:

FROM alpine:3.2
MAINTAINER Fox Chan 

ENV CADVISOR_VERSION "v0.22.0"
ENV GLIBC_VERSION "2.23-r1"

RUN apk add --update ca-certificates device-mapper && \
    wget https://github.com/andyshinn/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk && \
    wget https://github.com/andyshinn/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-bin-${GLIBC_VERSION}.apk && \
    apk add --allow-untrusted glibc-${GLIBC_VERSION}.apk glibc-bin-${GLIBC_VERSION}.apk && \
    apk add zfs-utils  --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted  && \
    /usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib && \
    echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \
    rm -rf /var/cache/apk/*

# Grab cadvisor from the staging directory.
RUN wget -O /usr/bin/cadvisor https://github.com/axibase/cadvisor/releases/download/${CADVISOR_VERSION}/cadvisor && \
    chmod +x /usr/bin/cadvisor

ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr", "-port=8080", "--housekeeping_interval=20s"]