NodeJS on Ubuntu and Debian in Docker

For my current development project, I wanted to install NodeJS in my docker image, with the following constraints:

  • OS starting point that I define ( monthly patched version of Debian-LTS )

  • Latest security patched version of the NodeJS binaries

  • Need faster security patching

  • Avoid using Package Manager - no apt

  • Low disk footprint

Built this snippet:

Hoping you find it useful.