diff --git a/docker-bake.hcl b/docker-bake.hcl index 132f5060..0d709734 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -19,19 +19,11 @@ target "bench" { context = "images/bench" target = "bench" tags = ["frappe/bench:latest"] - platforms = [ - "linux/amd64", - "linux/arm64" - ] } target "bench-test" { inherits = ["bench"] target = "bench-test" - platforms = [ - "linux/amd64", - "linux/arm64" - ] } # Main images @@ -66,6 +58,10 @@ target "default-args" { # If `ERPNEXT_VERSION` variable contains "v12" use Python 3.7. Else — 3.9. PYTHON_VERSION = can(regex("v12", "${ERPNEXT_VERSION}")) ? "3.7" : "3.9" } + platforms = [ + "linux/amd64", + "linux/arm64" + ] } target "frappe-worker" { @@ -73,10 +69,6 @@ target "frappe-worker" { context = "images/worker" target = "frappe" tags = tag("frappe-worker", "${FRAPPE_VERSION}") - platforms = [ - "linux/amd64", - "linux/arm64" - ] } target "erpnext-worker" { @@ -84,10 +76,6 @@ target "erpnext-worker" { context = "images/worker" target = "erpnext" tags = tag("erpnext-worker", "${ERPNEXT_VERSION}") - platforms = [ - "linux/amd64", - "linux/arm64" - ] } target "frappe-nginx" { @@ -95,10 +83,6 @@ target "frappe-nginx" { context = "images/nginx" target = "frappe" tags = tag("frappe-nginx", "${FRAPPE_VERSION}") - platforms = [ - "linux/amd64", - "linux/arm64" - ] } target "assets-builder" { @@ -106,10 +90,6 @@ target "assets-builder" { context = "images/nginx" target = "assets_builder" tags = tag("assets-builder", "${FRAPPE_VERSION}") - platforms = [ - "linux/amd64", - "linux/arm64" - ] } target "erpnext-nginx" { @@ -117,18 +97,10 @@ target "erpnext-nginx" { context = "images/nginx" target = "erpnext" tags = tag("erpnext-nginx", "${ERPNEXT_VERSION}") - platforms = [ - "linux/amd64", - "linux/arm64" - ] } target "frappe-socketio" { inherits = ["default-args"] context = "images/socketio" tags = tag("frappe-socketio", "${FRAPPE_VERSION}") - platforms = [ - "linux/amd64", - "linux/arm64" - ] }