mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 09:15:10 +00:00
Add assets builder image
This commit is contained in:
parent
79760daf9b
commit
7dc7ba97f6
2 changed files with 12 additions and 1 deletions
|
|
@ -81,6 +81,13 @@ target "frappe-nginx" {
|
||||||
tags = tag("frappe-nginx", "${FRAPPE_VERSION}")
|
tags = tag("frappe-nginx", "${FRAPPE_VERSION}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
target "assets-builder" {
|
||||||
|
inherits = ["default-args"]
|
||||||
|
context = "images/nginx"
|
||||||
|
target = "assets_builder"
|
||||||
|
tags = tag("assets-builder", "${FRAPPE_VERSION}")
|
||||||
|
}
|
||||||
|
|
||||||
target "erpnext-nginx" {
|
target "erpnext-nginx" {
|
||||||
inherits = ["default-args"]
|
inherits = ["default-args"]
|
||||||
context = "images/nginx"
|
context = "images/nginx"
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,15 @@ RUN yarn --cwd apps/frappe --prod
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM frappe_prod_node_modules as frappe_assets
|
FROM frappe_prod_node_modules as assets_builder
|
||||||
|
|
||||||
# Install development node modules
|
# Install development node modules
|
||||||
RUN yarn --cwd apps/frappe
|
RUN yarn --cwd apps/frappe
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
FROM assets_builder as frappe_assets
|
||||||
|
|
||||||
# Build assets they're stored in frappe-bench/sites/assets
|
# Build assets they're stored in frappe-bench/sites/assets
|
||||||
RUN echo "frappe" >sites/apps.txt \
|
RUN echo "frappe" >sites/apps.txt \
|
||||||
&& yarn --cwd apps/frappe run production \
|
&& yarn --cwd apps/frappe run production \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue