quickstart/Dockerfile: cleanup

switch to google/debian:wheezy / libprotobuf7
remove apt-get upgrade (you should rely on the base image being updated)
add --no-install-recommends
remove cleanup at the end (it doesn't save space, as the file already are in previous layers)
This commit is contained in:
Johan Euphrosine 2014-06-12 01:12:36 -07:00
parent d5f9cbc890
commit 63057f7441

View File

@ -1,18 +1,14 @@
FROM ubuntu:14.04
FROM google/debian:wheezy
MAINTAINER kyurtsever@google.com dengnan@google.com vmarmol@google.com
# Get the lmctfy dependencies.
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y --force-yes pkg-config libprotobuf8 libapparmor1
ADD http://storage.googleapis.com/cadvisor-bin/lmctfy/libre2.so.0.0.0 /usr/lib/libre2.so.0
RUN apt-get update && apt-get install -y -q --no-install-recommends pkg-config libprotobuf8 libapparmor1
# Get the lcmtfy and cAdvisor binaries.
ADD http://storage.googleapis.com/cadvisor-bin/lmctfy/lmctfy /usr/bin/lmctfy
ADD http://storage.googleapis.com/cadvisor-bin/lmctfy/libre2.so.0.0.0 /usr/lib/libre2.so.0
ADD http://storage.googleapis.com/cadvisor-bin/cadvisor /usr/bin/cadvisor
RUN chmod +x /usr/bin/lmctfy && chmod +x /usr/bin/cadvisor
# Clean up apt and other locations
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
EXPOSE 8080
ENTRYPOINT ["/usr/bin/cadvisor"]