I wanna run ERPNext from a single Dockerfile. I can’t use docker-compose on my service.
Use GitHub - pipech/erpnext-docker-debian: Self-contained ERPNext Docker Image base on Debian or build your own using it.
It is good practice to run one service per container. It helps for debugging, logging, scaling, reusability, upgrades, security etc.
I suggest you to look at these sources:
frappe/benchimage is meant to be used development. It would be near to impossible to develop and debug something on production Docker setup. Frappe framework has quite a lot external dependencies and this image helps to bootstrap local development.
If you want not to worry about Docker and stuff, just use
officialvirtual machine image. pipech’s image is a compromise.
Use anything that solves your problem.