makuk66 / docker-solr

Solr on Docker
86 stars 40 forks source link

Reduce image size #11

Closed ericcitaire closed 9 years ago

ericcitaire commented 9 years ago
ericcitaire commented 9 years ago

In addition, Solr 5 documentation says you only need a JRE.

makuk66 commented 9 years ago

use JRE instead of JDK

Now that we use official java:8 parent image, I'm less concerned about the size premium of the JDK -- you only pay cost that once, and it is shared over other images that reference it. The java:8 doesn't even specify a preference, and I picked that to increase the chances of re-use.

But, I'm not opposed to changing this and follow the docs recommendation explicitly.

don't install lsof (38 MB) which is not needed.

It is used here: https://github.com/apache/lucene-solr/blob/trunk/solr/bin/solr#L1321

By the way, curl and procps are not needed and are already installed.

Ah, handy.