How to prevent viewing the source codes using "docker exec"


Our clients opt to deploy our App on-prem instead of our Cloud offering. I would like to know how I can protect our source codes in our Docker Images once they pulled and run them. Basically, they can see our source codes once they do “docker exec -it xxx bash”.

I appreciate anyone who can lead me to a right solution of securing our docker images once deployed on-prem to our clients.


Look into the topic of Source Code Obfuscation for your programming language.