From cc00ab161b2721e50d8a96a0dc9552abfd258b8b Mon Sep 17 00:00:00 2001 From: can1357 Date: Tue, 28 Jul 2026 15:25:57 +0200 Subject: [PATCH] fix(docker): install bazelisk in natives-builder stage The bazel migration (8facd237d) switched the native addon build to bazel-natives.ts which requires bazelisk/bazel on PATH, but the Dockerfile was never updated to install it. Also exclude bazel-* output symlinks from the docker build context. --- Dockerfile | 7 ++++++- Dockerfile.dockerignore | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 305ab362b..dc38393a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,11 +36,16 @@ ENV BUN_INSTALL=/opt/bun \ # clang/libclang-dev: bindgen for maudio-sys (miniaudio); cmake/make/ninja-build: # audiopus_sys builds bundled libopus via CMake (native audio stack, 17.1.1+). +# bazelisk: hermetic bazel launcher for the native addon build (17.1.5+). RUN apt-get update \ && apt-get install -y --no-install-recommends \ curl ca-certificates pkg-config libssl-dev unzip git \ clang libclang-dev cmake make ninja-build \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* \ + && curl -fsSL -o /usr/local/bin/bazelisk \ + "https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-$(dpkg --print-architecture)" \ + && chmod +x /usr/local/bin/bazelisk \ + && ln -s /usr/local/bin/bazelisk /usr/local/bin/bazel RUN curl -fsSL https://bun.sh/install | bash -s "bun-v${BUN_VERSION}" \ && /opt/bun/bin/bun --version diff --git a/Dockerfile.dockerignore b/Dockerfile.dockerignore index 1a2b0a11b..7d6c0840d 100644 --- a/Dockerfile.dockerignore +++ b/Dockerfile.dockerignore @@ -3,8 +3,9 @@ # Dockerfile.robomp.dockerignore alongside. # Heavy build outputs — must never reach the build context. `target/` alone is -# >100 GB on a dev machine. +# >100 GB on a dev machine; `bazel-*` symlinks point at the bazel output base. target/ +bazel-* **/node_modules dist/ runs/