Add assets builder image

This commit is contained in:
Lev Vereshchagin 2022-03-19 11:00:03 +03:00
parent 79760daf9b
commit 7dc7ba97f6
2 changed files with 12 additions and 1 deletions

View file

@ -81,6 +81,13 @@ target "frappe-nginx" {
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" {
inherits = ["default-args"]
context = "images/nginx"

View file

@ -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
RUN yarn --cwd apps/frappe
FROM assets_builder as frappe_assets
# Build assets they're stored in frappe-bench/sites/assets
RUN echo "frappe" >sites/apps.txt \
&& yarn --cwd apps/frappe run production \