nodeconf / EU-CFP

Call for participation for NodeConf.eu 2015
10 stars 6 forks source link

Effective Docker builds #58

Open novemberborn opened 9 years ago

novemberborn commented 9 years ago

I'd like to propose a talk on how best to build Docker images, with a focus of course on building Node applications.

This would cover:

All these are takeaways from deploying Node services at State.

As an example, the Node service powering the website has a rather complicated build process, with ~170 MiB worth of dependencies (including dev), JS & CSS compilation and even invocations of PhantomJS to generate critical path CSS. We can build this into an image that's only 207 MiB, which is about a 6th of the non-slim build.