From 1827538c18ef12e0ff4225c69571d2c7bff8a378 Mon Sep 17 00:00:00 2001 From: Shawn Jackson Date: Mon, 26 Oct 2026 07:18:53 -0700 Subject: [PATCH] Build fix --- .github/workflows/react-native-cicd.yml | 5 +++++ Dockerfile | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/react-native-cicd.yml b/.github/workflows/react-native-cicd.yml index 8e7e996e..9006e70f 100644 --- a/.github/workflows/react-native-cicd.yml +++ b/.github/workflows/react-native-cicd.yml @@ -545,6 +545,11 @@ jobs: echo "available=false" >> $GITHUB_OUTPUT fi + # Register binfmt handlers so the arm64 runtime stage runs under the host's QEMU + # instead of BuildKit's built-in fallback emulator. + - name: 🐳 Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: 🐳 Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/Dockerfile b/Dockerfile index 5c3097cd..38d5923e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ ### STAGE 1: Build ### -FROM node:22-alpine AS build +# The build output is static web assets, so always build on the native builder platform. +# Emulating this stage under QEMU for arm64 is extremely slow and fails during yarn install. +FROM --platform=$BUILDPLATFORM node:22-alpine AS build # Install build dependencies RUN apk add --no-cache python3 make g++