From 5b958576533087f5c32ef0a1e2a11b2177f15606 Mon Sep 17 00:00:00 2001 From: Aleksandr Pasevin Date: Tue, 21 Jul 2026 11:17:31 +0100 Subject: [PATCH] fix(ci): revert Docker image to Node 22 for arm64 builds Node 26 breaks the multi-platform push step: pnpm install fails on linux/arm64 when native modules (utf-8-validate) compile under QEMU. Keep anchore/scan-action v7.4.0 from #404. Co-authored-by: Cursor --- .nvmrc | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.nvmrc b/.nvmrc index 6f4247a6..2bd5a0a9 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -26 +22 diff --git a/Dockerfile b/Dockerfile index effcb05f..189a59cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build stage -FROM node:26-slim@sha256:a1d9d671994fc2d26e297ac56b4b1522a8bc7fa71c43b14cd1b1fe6c5116f7dc AS builder +FROM node:22-slim@sha256:752ea8a2f758c34002a0461bd9f1cee4f9a3c36d48494586f60ffce1fc708e0e AS builder WORKDIR /builder @@ -77,7 +77,7 @@ RUN --mount=type=secret,id=etherscan_api_key \ pnpm build' # Runtime stage - using a slim image for a smaller footprint -FROM node:26-slim@sha256:a1d9d671994fc2d26e297ac56b4b1522a8bc7fa71c43b14cd1b1fe6c5116f7dc AS runner +FROM node:22-slim@sha256:752ea8a2f758c34002a0461bd9f1cee4f9a3c36d48494586f60ffce1fc708e0e AS runner # Set NODE_ENV to production for the final runtime image ENV NODE_ENV=production