Sometimes your Docker build is cached, and you need to build without cache.

Symptoms of this predicament: you build the container, take it down and up, and don’t see your changes. And maybe see outdated files on the container filesystem.

Build without cache:

docker compose build --no-cache