Create nodejs image containers

Explore ways to create container image for nodejs projects

Introduction

This is a NodeJS specific article for You may not need a Dockerfile 🐳. A NodeJs application can be a lot of things, and thus there is quite some ways to generate container image for it.

  • Single Page App: static set of file to be served by an HTTP server (nginx, apache, …)
  • Single Page App embedded: similar to above but they will be embedded in another binary. An example for this is tektoncd/dashboard.
  • A nodejs application: we run the application using node …. This could be an API, or something else.