1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
dockerfiles/cadvisor/Dockerfile

25 lines
1.0 KiB
Docker
Raw Normal View History

2016-01-28 10:00:25 +00:00
#
# Dockerfile for cadvisor
#
FROM alpine
2016-05-01 01:06:20 +00:00
MAINTAINER kev <noreply@easypi.info>
2016-01-28 10:00:25 +00:00
RUN set -xe \
&& apk add --update ca-certificates device-mapper \
&& wget https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/8/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk \
&& wget https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/8/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-bin-2.21-r2.apk \
&& apk add --allow-untrusted glibc-2.21-r2.apk glibc-bin-2.21-r2.apk \
&& apk add zfs-utils --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
&& /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-03-31 08:59:15 +00:00
&& wget https://github.com/google/cadvisor/releases/download/v0.22.0/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"]