I am trying to build a dockerfile to build containers and images on top of that. The image dependencies are listed in an xml file. How can i read the xml file to make the dockerfile ?
If it was me, I’d write an XSLT stylesheet that directly output the Dockerfile.
Probably a more sensible approach is to build a base image that embeds whatever existing tooling you have to install software from the XML file, then build images on top of that that COPY the XML file in and run the installer.