<div dir="ltr"><div>Hello,</div><div>  I was looking into google/cadvisor docker image that is only 47 megs large and wondering how we can improve. To some extend it is so small because of the Go lang, but not only.</div><div><br></div><div>Here are the results:</div><div><br></div><div>base image with JRE 8 and Alpine linux: 76.8 MB</div><div>wildfly 10.1.0.Final image 215 MB</div><div>hawkular-services 320 MB</div><div><br></div><div>Just for the record, here is status quo:</div><div>base CentOS image w/ JDK 8: 149 MB</div><div>wf image: 580 MB</div><div>hawkular-services image  672 MB</div><div><br></div><div>All the mini-images are based on Alpine (that itself is based on BusyBox), so the price for it is less convenience when debugging the images.</div><div><br></div><div>I also removed</div>9.2M  /opt/jboss/wildfly/docs<div><div><br></div><div>and wanted to remove</div><div>9.0M  /opt/jboss/wildfly/modules/<wbr>system/layers/base/org/<wbr>hibernate</div><div>5.1M  /opt/jboss/wildfly/modules/<wbr>system/layers/base/org/apache/<wbr>lucene<br></div><div>5.6M  /opt/jboss/wildfly/modules/<wbr>system/layers/base/org/apache/<wbr>cxf<br></div><div><br></div><div>but from some reason the h-services fails to start because it didn&#39;t found some class from that hibernate module, so I rather put it back.</div><div><br></div><div>What also helped was squashing all the image layers into 1. This makes the download faster and possibly the image smaller. When applying docker-squash [1] to the current h-services image it saves ~50megs</div><div><br></div><div>I am aware that this probably wont fly with some RH policy that we should base our SW on Fedora/RHEL base OS images, but I am gonna use them for development and because I often run out of space because of Docker.</div><div><br></div><div>Oh and I haven&#39;t published it on dockerhub yet, but the repo is here [2]</div><div><br></div><div>jk</div><div><br></div><div><br></div><div>[1]: <a href="https://github.com/goldmann/docker-squash">https://github.com/goldmann/docker-squash</a></div><div>[2]: <a href="https://github.com/Jiri-Kremser/hawkular-services-mini-dockerfiles">https://github.com/Jiri-Kremser/hawkular-services-mini-dockerfiles</a></div><div></div></div></div>