From 4ac405ef260810ca9fccadae2347c490dd5092e7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 1 Feb 2024 17:08:18 +0900 Subject: [PATCH] Use --load option for arm64 --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 68333b02..a45552fc 100644 --- a/Rakefile +++ b/Rakefile @@ -212,7 +212,7 @@ namespace :docker do IO.write('tmp/ruby/.keep', '') end - build_cmd_args = arch =~ /arm/ ? ['buildx', 'build', '--platform', arch] : ['build'] + build_cmd_args = arch =~ /arm/ ? ['buildx', 'build', '--platform', arch, '--load'] : ['build'] sh 'docker', *build_cmd_args, '-f', 'Dockerfile', *tags.map {|tag| ["-t", tag] }.flatten,