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

A small base image and .dockerignore

You can ship a chair from the workshop in a huge crate full of straw or in a box that fits it. The chair inside is the same, but the big crate costs more to carry, and something extra can get lost in the straw. The base image of the last stage is that crate: everything in it travels to every server along with the program.

In this lesson

  • Variants of one image
  • The build context
  • The .dockerignore file
  • Common mistake
  • Key points