My question may be a duplicate of this , but I feel that it adds some features that make it somewhat different.
Currently, I have installed the Meteor Docker installation based on the node: 0.10 image, which first binds the application and runs "node main.js" as a CMD. The image also installs Meteor and uses its command to download the environment and install the necessary packages.
It seems to me that the image will be greatly simplified if, instead of using node: 0.10, I could use a more minimal Linux image and just install curl / git / meteor. Removing the build step will simplify the situation even more, because based on my understanding of “building meteors,” there is no way to not create mobile applications if they are configured but not needed (i.e., if I usually create applications for Android / IOS, I I can’t easily not build them if I just want a bundle). In addition, my development environment already uses MONGO_URL and a container instance of MongoDB, so I don’t even use the local database during development.
So what is the difference between "meteor run --production" with the MONGO_URL set and "node main.js"? What happens in one instance that is not in another?
In particular, does the “meteor run production” detect the presence of MONGO_URL rather than deploying a separate, unused mangon? I clearly see the data in the database that MONGO_URL points to, but I'm not sure that the meteor command spins a separate one that sits around and spends CPU cycles / RAM. Based on the previous question, I understand that he was still polling the file system for changes. But is it really easy to use inotify under Linux, and do I correctly assume that the pretty slight performance is a success?
I assume that if I need every ounce of performance on my servers, assembly is the way to go. But if running "meteor run --production" with MONGO_URL installed leads to a slight performance hit, but greatly simplifies my setup, I probably should simplify my Dockerfiles and combine the dev / production settings a bit.
Thanks.
Nolan source share