From 2b7d3402645111cd878278e6002f28f08e851628 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Sun, 1 Mar 2026 19:40:09 -0600 Subject: [PATCH] fix(ci): use node:24-slim (glibc) instead of Alpine (musl) Native modules like @matrix-org/matrix-sdk-crypto-nodejs detect the libc type at install time and download the appropriate binary. Previously, CI used node:24-alpine (musl), so native modules downloaded musl binaries. But production runs on Debian (glibc), causing runtime crashes when the glibc binary is expected but not found. This fix: - Changes CI to node:24-slim (Debian/glibc) - Adds python3/make/g++ for native module compilation Fixes: matrix-sdk-crypto-nodejs-linux-x64-gnu MODULE_NOT_FOUND --- .woodpecker/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index 40298b8..ed65fd4 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -29,9 +29,10 @@ when: - ".trivyignore" variables: - - &node_image "node:24-alpine" + - &node_image "node:24-slim" - &install_deps | corepack enable + apt-get update && apt-get install -y --no-install-recommends python3 make g++ pnpm config set store-dir /root/.local/share/pnpm/store pnpm install --frozen-lockfile - &use_deps |