We only use the JRE part of the base image. If you execute the below, then apply docker-squash, we cut 40MB. This means faster docker pulls, less time re-creating docker hosts, etc.
Insert into base's Dockerfile
# Remove JDK components as all we need is a full-profile JRE
RUN rm -rf /usr/local/java/bin /usr/local/java/lib /usr/local/java/include
Example result of docker-squash
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
squash latest fb2e3c83623b 12 seconds ago 124.4 MB
quay.io/openzipkin/zipkin-base base-1.17.1 0fb342303dab 6 minutes ago 165.5 MB
Tested with docker-compose.yml here and in zipkin-java
We only use the JRE part of the base image. If you execute the below, then apply docker-squash, we cut 40MB. This means faster docker pulls, less time re-creating docker hosts, etc.
Insert into base's Dockerfile
Example result of docker-squash
Tested with docker-compose.yml here and in zipkin-java