I’d like to use homebrew linux to install packages in a Dockerfile build. What would be the appropriate steps to ensure only the installed packages remain?
I have yet to see any Dockerfiles that do this. I am interested in seeing examples if available. Specifically, I am interested in building a docker image to bootstrap a development environment with useful tools and language runtimes.
RUN install_brew; brew bundle; remove_brew layer would be a lot more pleasant than a long shell script especially as not every package is available or up to date in apt repositories.