~/talk

Master production: best practices to build Node.js Docker images

Talkat DevOps fwdays'23 · 2023-03-16..03-21· [nodejs, security]
slides:none on file

Claims that many Dockerfiles are unsafe and unreproducible get demonstrated with concrete failures: a Codecov Docker image leak exposes static GCP creds for four months; default FROM node:latest produces hundreds of known CVEs (examples shown: ~624 vs ~58 on slim images); npm install pulls dev deps and can enable malicious install scripts; CMD npm start loses signals. Practical fixes include pin image by digest, set NODE_ENV=production and use npm ci --only=production, run as non-root and chown files, and use tini or dumb-init for proper signal handling.

AI-written summary · about

  1. 0:00Secure Node.js Docker images
  2. 3:32Speaker and talk overview
  3. 5:21Developer tooling vulnerabilities
  4. 10:38Deterministic Docker tags
  5. 15:54Optimize Node.js for production
  6. 18:22Least privilege containers
  7. 24:42Node.js process invocation
  8. 31:59Graceful shutdown and cleanup
  9. 34:04Scan Docker image vulnerabilities
  10. 39:24Summary and resources
  11. 40:26Q&A on npm backdoors
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.