diff --git a/docs/single-compose-setup.md b/docs/single-compose-setup.md index 2a5e4d85..59bf4312 100644 --- a/docs/single-compose-setup.md +++ b/docs/single-compose-setup.md @@ -30,7 +30,6 @@ This setup is a very simple single compose file that does everything to start re - sites: Volume for bench data. Common config, all sites, all site configs and site files will be stored here. - logs: Volume for bench logs. all process logs are dumped here. No need to mount it. Each container will create a temporary volume for logs if not specified. -- assets: Volume for static. Do not mount it. Mounting it will cause static assets to not update. Each container will create a temporary volume for logs if not specified. ## Adaptation diff --git a/images/custom/Containerfile b/images/custom/Containerfile index 17022ae8..e7eec9e4 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -103,10 +103,8 @@ RUN export APP_INSTALL_ARGS="" && \ WORKDIR /home/frappe/frappe-bench -RUN export BUILD_OPTS="--production --hard-link" && \ - if [ -z "${FRAPPE_BRANCH##*v12*}" ] || [ -z "${FRAPPE_BRANCH##*v13*}" ] \ - || [ "$FRAPPE_BRANCH" = "version-12" ] || [ "$FRAPPE_BRANCH" = "version-13" ]; then \ - export BUILD_OPTS="--make-copy"; \ +RUN if [ -z "${FRAPPE_BRANCH##*v14*}" ] || [ "$FRAPPE_BRANCH" = "version-14" ] || [ "$FRAPPE_BRANCH" = "develop" ]; then \ + export BUILD_OPTS="--production"; \ fi && \ FRAPPE_ENV=production bench build --verbose ${BUILD_OPTS} diff --git a/images/production/Containerfile b/images/production/Containerfile index 8193cdef..cb3cdedb 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -92,10 +92,8 @@ RUN bench init \ WORKDIR /home/frappe/frappe-bench RUN bench get-app --branch=${ERPNEXT_BRANCH} --skip-assets --resolve-deps erpnext ${ERPNEXT_REPO} && \ - export BUILD_OPTS="--production --hard-link" && \ - if [ -z "${FRAPPE_BRANCH##*v12*}" ] || [ -z "${FRAPPE_BRANCH##*v13*}" ] \ - || [ "$FRAPPE_BRANCH" = "version-12" ] || [ "$FRAPPE_BRANCH" = "version-13" ]; then \ - export BUILD_OPTS="--make-copy"; \ + if [ -z "${FRAPPE_BRANCH##*v14*}" ] || [ "$FRAPPE_BRANCH" = "version-14" ] || [ "$FRAPPE_BRANCH" = "develop" ]; then \ + export BUILD_OPTS="--production"; \ fi && \ FRAPPE_ENV=production bench build --verbose ${BUILD_OPTS}