Frappe Docker: How to build a custom image with a private repo

clone the apps as part of ci using ci environment variables for secrets.

then copy the repo into image and pip install.

check this gitlab ci file .gitlab-ci.yml · main · GWPTCorg / containers_builds · GitLab

Please don’t complain that the repo I shared doesn’t use private repo. You can use private repo instead, pass username password as env vars.