From d1701e127ec311e12c002839aabeab7c9ee06d76 Mon Sep 17 00:00:00 2001 From: Michael Wei Date: Mon, 5 Jun 2023 14:13:54 -0700 Subject: [PATCH] fix: don't assume build platform is amd64 (#6709) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb010c780..0c244f901 100644 --- a/Dockerfile +++ b/Dockerfile @@ -227,8 +227,8 @@ CMD ["sleep", "infinity"] # Frigate web build -# force this to run on amd64 because QEMU is painfully slow -FROM --platform=linux/amd64 node:16 AS web-build +# This should be architecture agnostic, so speed up the build on multiarch by not using QEMU. +FROM --platform=$BUILDPLATFORM node:16 AS web-build WORKDIR /work COPY web/package.json web/package-lock.json ./