An Exhaustive Guide to Writing Dockerfiles for Node.js Web Apps

TL;DR This post is filled with examples ranging from a simple Dockerfile to multistage production builds for Node.js web apps. Here’s a quick summary of what this guide covers: Using an appropriate base image (carbon for dev, alpine for production). Using nodemon for hot reloading during development. Optimising for Docker cache layers — placing commands in the right order so that npm install is…

This is an excerpt. The full article continues at Hasura.