Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --build-arg PRE_INSTALL_SCRIPT to improve build time #88

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mklueh
Copy link

@mklueh mklueh commented Dec 9, 2017

I´ve added a new arg PRE_INSTALL_SCRIPT that let´s you do heavy installation tasks before the Meteor installation.

The problem is that with every build the Node and Meteor packages get redownloaded and the application gets rebuilded which invalidates the cache of all following layers.

In my case I needed to install the Android SDK into the image which lead to build times of over 30-40 min because it got installed again every single time, although it usually doesn´t get updated too often.

Maybe it would also make sense to split up the RUN statement and separate the Meteor, Node and Mongo installation from the application build and also implement caching for NPM. This would speed up things a lot more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant