Updated custom Containerfile to solve custom app download issue

Updated custom Containerfile to solve custom app download issue as there was error downloading custom apps from user git
This commit is contained in:
Malay Gondalia 2024-03-01 11:30:27 +05:30 committed by GitHub
parent ede911af0a
commit ae23f28312
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,6 +110,7 @@ ARG FRAPPE_PATH=https://github.com/frappe/frappe
RUN export APP_INSTALL_ARGS="" && \
if [ -n "${APPS_JSON_BASE64}" ]; then \
export APP_INSTALL_ARGS="--apps_path=/opt/frappe/apps.json"; \
cat /opt/frappe/apps.json | jq -r '.[] | "bench get-app --branch " + .branch + " --dev --ignore-apps-file " + .url' | sh; \
fi && \
bench init ${APP_INSTALL_ARGS}\
--frappe-branch=${FRAPPE_BRANCH} \