add platforms to bake file to include m1 (arm64)

This commit is contained in:
Al Majumdar 2022-03-24 19:12:15 +05:30
parent 3ba01027de
commit 4dc5fcf314

View file

@ -8,11 +8,19 @@ target "bench" {
context = "build/bench" context = "build/bench"
target = "bench" target = "bench"
tags = ["frappe/bench:latest"] tags = ["frappe/bench:latest"]
platforms = [
"linux/amd64",
"linux/arm64"
]
} }
target "bench-test" { target "bench-test" {
inherits = ["bench"] inherits = ["bench"]
target = "bench-test" target = "bench-test"
platforms = [
"linux/amd64",
"linux/arm64"
]
} }
# Main images # Main images
@ -20,22 +28,42 @@ target "bench-test" {
target "frappe-nginx" { target "frappe-nginx" {
dockerfile = "build/frappe-nginx/Dockerfile" dockerfile = "build/frappe-nginx/Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64"
]
} }
target "frappe-worker" { target "frappe-worker" {
dockerfile = "build/frappe-worker/Dockerfile" dockerfile = "build/frappe-worker/Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64"
]
} }
target "frappe-socketio" { target "frappe-socketio" {
dockerfile = "build/frappe-socketio/Dockerfile" dockerfile = "build/frappe-socketio/Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64"
]
} }
target "erpnext-nginx" { target "erpnext-nginx" {
dockerfile = "build/erpnext-nginx/Dockerfile" dockerfile = "build/erpnext-nginx/Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64"
]
} }
target "erpnext-worker" { target "erpnext-worker" {
dockerfile = "build/erpnext-worker/Dockerfile" dockerfile = "build/erpnext-worker/Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64"
]
} }