infrastructure/docker-build-cache-why-a-one-line-change-can-trigger-a-full-reinstall.md
Docker build cache: why a one-line change can trigger a full reinstall
You change one line of code, rebuild your Docker image, and wait while every library downloads again. Often the cause is just the order of lines in the Dockerfile.
Docker saves the result of each step as a layer and reuses it when nothing above it changed. Try two Dockerfiles, edit a file, and watch which steps are reused and which rerun.

$ ls infrastructure/
see all →
infrastructure/what-is-a-load-balancer-one-web-address-many-servers.md
What is a load balancer? One web address, many servers
When you open a popular website you type one address, yet many servers stand behind it. Something has to decide which one answers you. That…
infrastructure/what-is-ci-the-robot-that-tests-your-code-every-time-you-push.md
What is CI? The robot that tests your code every time you push
You change one line, it looks fine, and two days later something far away breaks. Continuous integration (CI) is a robot that prevents…
infrastructure/what-is-a-server-really-a-computer-that-waits-for-questions.md
What is a server, really? A computer that waits for questions
A server isn't a special kind of machine. It's an ordinary computer running a program that waits for someone to ask for something, then…
infrastructure/from-localhost-to-production-what-deploying-your-code-really-means.md
From localhost to production: what “deploying” your code really means
Your app runs perfectly at localhost:3000, but the link does nothing on a friend's phone. That's because localhost means "this computer"…