From 6bc8b4041b42d4d501d1b15497c3391dbd5c61bb Mon Sep 17 00:00:00 2001 From: Sajith K Date: Mon, 10 Jul 2023 09:24:14 +0530 Subject: [PATCH] Compat 2022 (#1174) * Update nginx-template.conf Update to allow access of private files * updated node and python versions * Update frontend.Dockerfile updated bench build command to remove --production tag for version-13 frappe --- custom_app/frontend.Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_app/frontend.Dockerfile b/custom_app/frontend.Dockerfile index 7b3c8473..400f3202 100644 --- a/custom_app/frontend.Dockerfile +++ b/custom_app/frontend.Dockerfile @@ -20,7 +20,10 @@ COPY --chown=frappe:frappe . apps/${APP_NAME} RUN bench setup requirements # Build static assets, copy files instead of symlink -RUN bench build --production --verbose --hard-link +RUN if [ -z "${ERPNEXT_VERSION##*v14*}" ] || [ "$ERPNEXT_VERSION" = "develop" ]; then \ + export BUILD_OPTS="--production"; \ + fi \ + && FRAPPE_ENV=production bench build --verbose --hard-link ${BUILD_OPTS} # Use frappe-nginx image with nginx template and env vars