Cleanup cmd on entrypoint setting

Fixes #5147
I agree, what are you think about this idea between base and child image? I think I can do this on "Dockerfile" level entirely.