Instead of importing homebrew from local files, the container should pull homebrew from a list of URLs at start up and generate it's own index.json.
All homebrew I'm aware of is available on Github. This would make updating homebrew files automatic, and would solve issues with permissions / overwriting local files.