~/talk

Creating Production Ready Containers: What Devs Need to Know to Secure Their Containers

Talkat DockerCon 2022 · 2022-05-09..05-10· [security, nodejs]
links:none on file
slides:none on file

Hands-on Node.js demo uses Dockerfiles, the Slim.ai Docker Desktop extension and docker-slim to show concrete fixes: set user node instead of root, pin exact base image (example 16.14.2 vs latest), split COPY to enable layer caching, and use multistage builds. Alpine base trims an uncompressed image from ~900 MB to ~100 MB, docker-slim reports up to 10–30x smaller images and removes shells/package managers, and the extension confirms each optimization’s file, size and vulnerability differences.

AI-written summary · about

  1. 0:00Intro
  2. 1:40Three key optimization takeaways
  3. 2:49What is needed for production
  4. 4:14Container Slimming
  5. 4:31"Hello World" NodeJs Example
  6. 4:44Example "Hello World" Dockerfile
  7. 4:56Creating a Better DockerFile
  8. 5:22Setting a User
  9. 6:50Pinning a Version
  10. 9:35Layer Caching
  11. 11:04NPM Cache Management
  12. 13:04Alternative Base Image
  13. 16:26Multi-Stage Builds
~/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.