Getting a Dockerfile and image built with Node.js is relatively simple. You only need to create Dockerfile that builds “FROM node:6” and you'll have Node.js v6.x up and running.
But as I showed you in the last episode, that official build has one major flaw: it's a 640mb footprint before you even get started with your application.
While it's true that there is safety in this file size – it has everything you could ever need for any type of node.js application deployment – the file size is generally not worth it. There are other options which can reduce the file size of your image, significantly.
So, what are those options? How can you reduce the image size and still run your node app?
Check out this episode of WatchMeCode to find out, and to see what base Node.js image I tend to build “FROM”.