Skip to content

Commit daff037

Browse files
committed
Specify "--platform linux/amd64" in build-tools/docker/build.py, so that it doesn't try building arm64 on arm-based macs
1 parent 2a9c198 commit daff037

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-tools/docker/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def build_docker_image(dockerfile_path, image_name, tags, num_jobs=None):
3434
if num_jobs:
3535
command += f" --build-arg NUM_JOBS={num_jobs}"
3636

37+
command += " --platform linux/amd64"
38+
3739
# Note: "plain" output is more verbose, but it makes it easier to understand what went wrong
3840
# when a problem occurs.
3941
command += " --progress=plain"

0 commit comments

Comments
 (0)