~/talk

Dockerfile: the best practices

Talkat Devoxx Belgium 2019 · 2019-11-04..11-08· [devops-and-delivery]
slides:none on file

Starts from a 1.7 GB monolithic image that takes ~8 minutes to build and shows how to split it into separate images (MongoDB official image, Nginx proxy, Node-built React static site, Spring Boot jar) to reach ~700 MB total, faster pulls and smaller pushes. Uses multi-stage builds, copies package.json/package-lock before source to cache installs, cleans apt caches and unnecessary layers, switches from JDK to JRE, wires services with Compose and networks, and enforces avoid running as root and use official images and single service per container.

AI-written summary · about

  1. 0:00Intro
  2. 3:10Extracting Mongo
  3. 10:17Multistage build
  4. 13:26Java Runtime image
  5. 23:04Security
  6. 24:53Summary
~/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.