that's why you install app dependencies into /opt and run your app from there. a simple LD_LIBRARY_PATH update will make your life easier.
docker adds complexity. complexity makes you feel smart but it's the enemy of reliability
docker adds complexity. complexity makes you feel smart but it's the enemy of reliability
What if you have collisions in /opt? What if a change in the ordering of the paths in LD_LIBRARY_PATH causes a domino effect. Reliable? I'm not sure, it depends on the determinism and responsibilities the deploy mechanism has.