OIT-UOG / specify-webportal-installer

fork of https://github.com/specify/webportal-installer
GNU General Public License v2.0
2 stars 0 forks source link

break up Makefile in Dockerfile to better utilize the cache #9

Open Chovin opened 5 years ago

Chovin commented 5 years ago

we can probably break down the make && make install processes to take advantage of cached layers more.
sometimes editing unrelated files in the repo even re-wgets solr

Step 7/21 : WORKDIR $install_dir
 ---> Using cache
 ---> f856eb8b0ecc
Step 8/21 : COPY get_latest_solr_vers.py .
 ---> 6bbd03235c85
Step 9/21 : ENV SOLR_VERSION 4.7.2
 ---> Running in abf244d7f04f
Removing intermediate container abf244d7f04f
 ---> f81aa184d8f8
Step 10/21 : RUN wget http://archive.apache.org/dist/lucene/solr/${SOLR_VERSION}/solr-${SOLR_VERSION}.tgz
 ---> Running in 0fee408c58ad
Chovin commented 5 years ago

if that's the case, we can maybe at least move solr back toward the bottom of the Dockerfile