fix: don't assume build platform is amd64 (#6709)

This commit is contained in:
Michael Wei 2023-06-05 14:13:54 -07:00 committed by GitHub
parent f0c1b66b0f
commit d1701e127e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ./