You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2026/08/03 12:12:58 UTC

(skywalking-banyandb) branch main updated: canopy: build all image stages on BUILDPLATFORM (#1242)

This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git


The following commit(s) were added to refs/heads/main by this push:
     new 36921708b canopy: build all image stages on BUILDPLATFORM (#1242)
36921708b is described below

commit 36921708b3bd3e0cd0ca37db9761fadf685c99a1
Author: Gao Hongtao <ha...@gmail.com>
AuthorDate: Mon Aug 3 20:12:52 2026 +0800

    canopy: build all image stages on BUILDPLATFORM (#1242)
---
 canopy/Dockerfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/canopy/Dockerfile b/canopy/Dockerfile
index aae00adec..65b283c86 100644
--- a/canopy/Dockerfile
+++ b/canopy/Dockerfile
@@ -17,9 +17,12 @@
 # canopy web console image — React SPA (web/) + Fastify BFF (server/).
 # Build context: canopy/ — invoked as `make -C canopy docker` (see canopy/Makefile
 # and scripts/build/docker.mk). Runtime is distroless for minimal CVE surface.
+# All build stages run on BUILDPLATFORM: the web bundle is static and every
+# prod dep is pure JS, so nothing needs a target-arch toolchain — this keeps
+# the arm64 leg from tripping over x64-pinned dev deps (EBADPLATFORM).
 
 # ── deps: full workspace install for the build ─────────────────────────────
-FROM node:24.6.0-bookworm AS deps
+FROM --platform=$BUILDPLATFORM node:24.6.0-bookworm AS deps
 WORKDIR /app
 COPY package.json package-lock.json ./
 COPY shared/package.json shared/