From 4dc5fcf314242659c261557a924ce0182534ac44 Mon Sep 17 00:00:00 2001 From: Al Majumdar <88921269+restlessronin@users.noreply.github.com> Date: Thu, 24 Mar 2022 19:12:15 +0530 Subject: [PATCH] add platforms to bake file to include m1 (arm64) --- docker-bake.hcl | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docker-bake.hcl b/docker-bake.hcl index 51f69ba3..8d37fefc 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -8,11 +8,19 @@ target "bench" { context = "build/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 @@ -20,22 +28,42 @@ target "bench-test" { target "frappe-nginx" { dockerfile = "build/frappe-nginx/Dockerfile" + platforms = [ + "linux/amd64", + "linux/arm64" + ] } target "frappe-worker" { dockerfile = "build/frappe-worker/Dockerfile" + platforms = [ + "linux/amd64", + "linux/arm64" + ] } target "frappe-socketio" { dockerfile = "build/frappe-socketio/Dockerfile" + platforms = [ + "linux/amd64", + "linux/arm64" + ] } target "erpnext-nginx" { dockerfile = "build/erpnext-nginx/Dockerfile" + platforms = [ + "linux/amd64", + "linux/arm64" + ] } target "erpnext-worker" { dockerfile = "build/erpnext-worker/Dockerfile" + platforms = [ + "linux/amd64", + "linux/arm64" + ] }