1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

fix cadvisor

This commit is contained in:
kev 2016-07-12 21:09:27 +08:00
parent 9e6788ec23
commit 4efc99fae0

@ -5,19 +5,19 @@
FROM alpine:edge
MAINTAINER kev <noreply@easypi.info>
ENV CADVISOR_VERSION 0.23.4
RUN set -xe \
&& apk add --update ca-certificates openssl device-mapper zfs \
&& apk add --no-cache 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 \
&& /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/*
&& rm -f *.apk
RUN set -xe \
&& wget https://github.com/google/cadvisor/releases/download/v0.23.6/cadvisor -O /usr/bin/cadvisor \
&& wget https://github.com/google/cadvisor/releases/download/v${CADVISOR_VERSION}/cadvisor -O /usr/bin/cadvisor \
&& chmod +x /usr/bin/cadvisor
EXPOSE 8080
ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]
ENTRYPOINT ["cadvisor", "-logtostderr"]