Skip to content

Commit

Permalink
Use --load option for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 1, 2024
1 parent 7ac896a commit 4ac405e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4ac405e

Please sign in to comment.