docker-meteor
docker-meteor copied to clipboard
Npm caching
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?
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.