From a4ca5ac8c272ded5802faa3042227149761f1644 Mon Sep 17 00:00:00 2001 From: Malay Gondalia <134581231+malay-gondalia@users.noreply.github.com> Date: Tue, 23 Sep 2025 14:04:47 +0530 Subject: [PATCH] Update Containerfile by adding bench setup requirements so All dependencies for all apps are already available. No need to know the site name in advance. and no need to setup requirements after site creation manually MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bench setup requirements reads all apps’ pyproject.toml / requirements.txt and installs the Python packages into the bench virtual environment. Later, when you dynamically create sites via: docker compose --project-name erpnext-one exec backend \ bench new-site --mariadb-user-host-login-scope=% --db-root-password changeit \ --install-app erpnext --admin-password changeit one.example.com All dependencies for all apps are already available. No need to know the site name in advance. This is fully compatible with the single-server-example.md workflow and supports multiple sites, dynamic app installation, and custom app dependencies. --- images/custom/Containerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/custom/Containerfile b/images/custom/Containerfile index 208f13e3..0f551579 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -129,7 +129,8 @@ RUN export APP_INSTALL_ARGS="" && \ /home/frappe/frappe-bench && \ cd /home/frappe/frappe-bench && \ echo "{}" > sites/common_site_config.json && \ - find apps -mindepth 1 -path "*/.git" | xargs rm -fr + find apps -mindepth 1 -path "*/.git" | xargs rm -fr && \ + bench setup requirements FROM base AS backend