mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
fix: symlink assets instead of copy
This commit is contained in:
parent
2f097e8cde
commit
aaddb22849
3 changed files with 4 additions and 9 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue