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

Npm caching #5

Open
paralin opened this issue Apr 12, 2015 · 1 comment
Open

Npm caching #5

paralin opened this issue Apr 12, 2015 · 1 comment

Comments

@paralin
Copy link

paralin commented Apr 12, 2015

Is there any way to cache the npm process? I've done it in the past by copying package.json in and running npm install before the rest of the app files. Docker sees there are no changes to package.json and caches the commands.

Could it be possible to make a package.json for the base meteor app and copy that in and install first? That way caching a lot of the packages installed?

@DanielDent
Copy link
Owner

I'm not strictly clear on what you are trying to cache when. It might be the simplest approach is to create a new Docker image for yourself with this image as a base. There are instructions for doing so in issue #3 .

If you can prove a little more clarity on your use case (development vs production builds, for instance) and what performance benefit you are looking for I might be able to give you a more helpful answer.

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

No branches or pull requests

2 participants