Clean-up and making ENTRYPOINT preferred form...

Adding clean-up RUN, and making ENTRYPOINT the preferred form.
This commit is contained in:
Jason Swindle 2014-06-11 09:18:36 -05:00
parent 22ec44027b
commit d2a323dbdc

View File

@ -11,5 +11,8 @@ ADD http://storage.googleapis.com/cadvisor-bin/lmctfy/lmctfy /usr/bin/lmctfy
ADD http://storage.googleapis.com/cadvisor-bin/cadvisor /usr/bin/cadvisor ADD http://storage.googleapis.com/cadvisor-bin/cadvisor /usr/bin/cadvisor
RUN chmod +x /usr/bin/lmctfy && chmod +x /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 EXPOSE 8080
ENTRYPOINT /usr/bin/cadvisor ENTRYPOINT ["/usr/bin/cadvisor"]