feat: allow layered custom image build (#1497)

speed up build time
pull builder image
pack built assets into base image
This commit is contained in:
Revant Nandgaonkar
2024-10-25 14:08:24 +05:30
committed by GitHub
parent fe880183f9
commit 8ac69bb501
3 changed files with 66 additions and 1 deletions

View File

@@ -91,3 +91,19 @@ target "erpnext" {
target = "erpnext"
tags = tag("erpnext", "${ERPNEXT_VERSION}")
}
target "base" {
inherits = ["default-args"]
context = "."
dockerfile = "images/production/Containerfile"
target = "base"
tags = tag("base", "${FRAPPE_VERSION}")
}
target "build" {
inherits = ["default-args"]
context = "."
dockerfile = "images/production/Containerfile"
target = "build"
tags = tag("build", "${FRAPPE_VERSION}")
}