Currently, when creating an container to run the agent in, every python file is copied over into the container, regardless of if it is even called.
I propose implementing a quick import traversal algorithm during each specific container build phase, traversing from the main file being used in that image, and going down each import/dependency it has and adding only the files that are directly called upon. This would exclude any python files that would not be called by the specific agent.
This would reduce image sizes, speeding up transfer times as well as reducing space taken up by images.
Currently, when creating an container to run the agent in, every python file is copied over into the container, regardless of if it is even called.
I propose implementing a quick import traversal algorithm during each specific container build phase, traversing from the main file being used in that image, and going down each import/dependency it has and adding only the files that are directly called upon. This would exclude any python files that would not be called by the specific agent.
This would reduce image sizes, speeding up transfer times as well as reducing space taken up by images.