I think that if you want to run this as a NON root user you could use a rootless image itself.
It depends how your K8s is setup.
It also depends how your Dockerfile is setup,.
The default one uses root to update the system then a node user that’s built in to run and compile everything,.