mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 09:15:10 +00:00
Update frontend.Dockerfile
updated bench build command to remove --production tag for version-13 frappe
This commit is contained in:
parent
7d919f51e2
commit
126da865d1
1 changed files with 4 additions and 1 deletions
|
|
@ -20,7 +20,10 @@ COPY --chown=frappe:frappe . apps/${APP_NAME}
|
||||||
RUN bench setup requirements
|
RUN bench setup requirements
|
||||||
|
|
||||||
# Build static assets, copy files instead of symlink
|
# 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
|
# Use frappe-nginx image with nginx template and env vars
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue