The Whale, the Container, and the Ocean - A Docker Tale
summary
Shows how a Dockerfile actually builds an image by walking a local repo through a docker build into the docker daemon and then into a container, demonstrating WORKDIR, COPY, RUN (npm install) and CMD. Explains why the dot context matters, how a 171 MB node_modules can balloon build context and how .dockerignore shrinks it to under 1 MB, how missing files cause COPY or npm errors, and how image layering and hashes let you inspect intermediate build snapshots for faster debugging.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:32building a simple app from a docker file on our local machine
- 8:03transfer files from the docker daemon into our container
- 10:16run the native npm install within our linux container
- 11:34setting a default run command for our container
- 13:42selecting the right amount of build context








