Enable to run bench build in docker container xx_erpnext-python_1

Currently we can run bench console in docker container xx_erpnext-python_1 like below

but when run bench build, there are a lot of errors.

I am wondering whether it is possible/feasible to enable running bench build in the erpnext-python container, if we can run bench build then we can make small js changes and do docker commit to generate new images accordingly. which will make small enhancement/development more easy.

Many thanks for your attention.

Bench build won’t work in production images.

It will only work in development frappe/bench image

To build custom apps for production refer https://github.com/frappe/frappe_docker/blob/develop/docs/custom-apps-for-production.md

How do I modify static resource files in frappe(production images)

fork Frappe framework and use the fork to build image

thank you, I have successfully modified it