Update frontend.Dockerfile

updated bench build command to remove --production tag for version-13 frappe
This commit is contained in:
Sajith K 2023-07-09 20:54:53 +05:30 committed by GitHub
parent 7d919f51e2
commit 126da865d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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