How to install brew into a Dockerfile (`brew: not found`)

Rather than necro-post on a two-year old thread, I decided to create a new question. I want add brew (homebrew) to a Docker container, but I get a brew: not found error. The suggested solution in t...

https://stackoverflow.com/questions/73757217/how-to-install-brew-into-a-dockerfile-brew-not-found

How to install brew into a Dockerfile (`brew: not found`)