Hello Aishwarya
I think that it depends on your minimal requirements and your deployment needs.
I think the more straightforward approach is to deploy a
volume with the integration script to the pod. However, you might need to do it for the files, not the full directory, because there are other scripts in that directory.
What you mention is also a great solution to customize the container image with your scripts, but I think that is an approach when you deploy multiple instances, and all of them need that customization. When creating and destroying instances many times, the script must be present each time. It's persistent in the image (all the times you might deploy) rather than doing it once for a single deployment.
Regards.. R