I am currently working on a project where I am being given RPM packages containing CHOWN and CHMOD in the poms. This is resulting in bloated files sizes where the final image can be around 25GB where the VM is 7GB. This is because the rpms chown the files installed by them and some system directories required for running commands as a non root user.
What is the recommendation for running zypper install commands without bloated file sizes?
Note that the POMs will change frequently but it is expected that the directory ownership will not change much at all. Is there a way to separate the permissions changes into metadata or something?