0

I have an Ubuntu-based Dockerfile and I’d like to change it to be based on a minimal Debian or maybe even Alpine. The problem is that I’m relying on a lot of system executables that came preinstalled and I don’t know which ones. Now in order to write a new Dockerfule based on Alpine I first need to find out which programs are being used and then I need to find out the name of the package that provides it on Alpine. Is there an easy way to simply log which system executables will be used by the Docker container? I was thinking of maybe moving everything found in PATH to a new directory and then creating bash scripts that sort of act as a proxy, logging the executable name and then calling the real executable. But would that be safe/reliable or even possible?