1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 16:28:40 +00:00
dockerfiles/cadvisor/Dockerfile

24 lines
855 B
Docker
Raw Normal View History

2016-01-28 10:00:25 +00:00
#
# Dockerfile for cadvisor
#
2016-07-11 02:11:29 +00:00
FROM alpine:edge
2016-05-01 01:06:20 +00:00
MAINTAINER kev <noreply@easypi.info>
2016-01-28 10:00:25 +00:00
RUN set -xe \
2016-07-11 02:11:29 +00:00
&& apk add --update ca-certificates openssl device-mapper zfs \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-2.23-r3.apk \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-bin-2.23-r3.apk \
&& apk add --allow-untrusted glibc-2.23-r3.apk glibc-bin-2.23-r3.apk \
2016-01-28 10:00:25 +00:00
&& /usr/glibc/usr/bin/ldconfig /lib /usr/glibc/usr/lib \
&& echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf \
&& rm -rf /var/cache/apk/*
RUN set -xe \
2016-07-08 12:51:26 +00:00
&& wget https://github.com/google/cadvisor/releases/download/v0.23.6/cadvisor -O /usr/bin/cadvisor \
2016-01-28 10:00:25 +00:00
&& chmod +x /usr/bin/cadvisor
EXPOSE 8080
ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]