18 lines
687 B
Docker
18 lines
687 B
Docker
FROM alpine:3.10
|
|
MAINTAINER dengnan@google.com vmarmol@google.com vishnuk@google.com jimmidyson@gmail.com stclair@google.com
|
|
|
|
RUN apk --no-cache add libc6-compat device-mapper findutils zfs && \
|
|
apk --no-cache add thin-provisioning-tools --repository http://dl-3.alpinelinux.org/alpine/edge/main/ && \
|
|
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \
|
|
rm -rf /var/cache/apk/*
|
|
|
|
# Grab cadvisor from the staging directory.
|
|
ADD cadvisor /usr/bin/cadvisor
|
|
|
|
EXPOSE 8080
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s \
|
|
CMD wget --quiet --tries=1 --spider http://localhost:8080/healthz || exit 1
|
|
|
|
ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]
|