Veeery long building time inside Docker container

I just build by hand in shell, it takes about 3 mins. Wire that up to a new commit and the new build can be automatically done while you get coffee.

thx for the tip (METEOR_DISABLE_OPTIMISTIC_CACHING) , will try that!

Edit: wow it actually cuts build time in half… seems silly that you have to set this variable explicitly, even the docs said that this is a sane default for meteor build Environment Variables | Meteor API Docs

1 Like

Yes, but by my tests, the difference is only in Docker. On host computer, there is not difference or very low (lower than 5%).

We have a GitHub CI and this vars:

DISABLE_CLIENT_STATS=true METEOR_DISABLE_OPTIMISTIC_CACHING=1 TOOL_NODE_FLAGS=--max-old-space-size=4096 meteor build --architecture=os.linux.x86_64 --server-only ./build

You can try to increase --max-old-space-size

Another useful article Optimizing CI for Meteor thanks @zodern

1 Like