Node.js Rocks in
summary
Recommends concrete Docker choices and commands: avoid heavy images like node:latest (~800 CVEs) and node:16 (nearly 2,000 CVEs), prefer node:bullseye-slim or an Ubuntu 20.04 base with copied node binaries (Ubuntu scan shows 0 high/critical, ~15 medium/low), or use distroless if you accept tradeoffs. Use tini as PID 1 (prevents zombies and handles signals), run production installs with npm ci --only=production, and use multi-stage builds to ship the exact layers that passed tests.
AI-written summary · about
chapters (7)
- 0:00Introduction to Dockerizing
- 1:20Selecting base images
- 7:04Customizing base images
- 15:24Docker best practices
- 18:15Managing PID 1 and signals
- 21:08Multi-stage builds
- 24:17Automating builds and testing
related talks
43mMaster production: best practices to build Node.js Docker images
31mMaster Production-grade Best Practices to Build your Node.js Docker Images
39mNode.js - What's Next - Catalyzing Change in the Node.js Ecosystem
40mResponsible Use of Node.js & Open Source Software Utilizing Best Practices at an...
01h 02mDiscussion on Technologies: Node.js
30mNodeJS: Patterns and Tools to Ship to Production with Confidence
47mCreating Enterprise Web Applications with Node.js
25mNode.js Meets Docker
