Skip to content
Theory · Better images · lesson 1 of 8

Multi-stage builds

From the build workshop with its saws and shavings, only the finished chair goes into the app crate along --from

A carpenter's workshop holds a workbench, saws and cans of varnish, and the floor is covered in shavings. A customer ordered a chair, and only the chair goes into the van. The workbench stays in the workshop: you need it to make the chair, not to sit on it.

In this lesson

  • Two stages in one Dockerfile
  • How much the result weighs
  • Common mistake
  • Key points