I’ve given up on telling every new comer that you need to build image with all your custom apps instead of starting the erpnext image and installing apps.
I had this pinned faq that mostly is missed.
I only use kubernetes, I’ve more than frappe sites hosted there. It only makes sense when I was already using containers in my infrastructure to use it for Frappe as well.
Edit: even this post will be missed and someone will ask, “I started docker compose and did bench get-app, now app is not working”