mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
added platforms directive to default args
This commit is contained in:
parent
1945aa0257
commit
4ff9a62b16
1 changed files with 4 additions and 32 deletions
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue