~/talk

Dockerfile - Best Practices

TalkinFrenchat Devoxx France 2021 · 2021-09-29..10-01· [devops-and-delivery]
slides:none on file

Shows how to refactor a single monolithic Dockerfile into four focused images—client (Node), server (OpenJDK), MongoDB, and nginx—wired together with Docker Compose. Uses Dockerfile best practices and multi-stage builds: replace manual installs with official images (mongo, nginx, node, openjdk), remove dev dependencies and apt caches, add a non-root user, and copy package.json first to preserve layer caching. Outcomes are faster, smaller, and more reproducible builds, with Docker Compose networks isolating services to improve security.

AI-written summary · about

  1. 0:00Introduction
  2. 3:13One service per container
  3. 7:10Official images and multi-stage
  4. 12:26Dev optimization
  5. 19:23Security and dedicated users
  6. 20:46Orchestration with Docker Compose
  7. 26:06Summary and best practices
~/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.