From a1b03acf042fa3cddd76e5008de493216184423a Mon Sep 17 00:00:00 2001 From: soheil khaledabadi Date: Mon, 2 Nov 2026 01:18:05 +0330 Subject: [PATCH] Fix Docker npm ci by switching build image to Node 20. Avoid the node:22-alpine crash that fails installs with Exit handler never called. Co-authored-by: Cursor --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 490e9db..55c4f2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM docker.arvancloud.ir/node:22-alpine AS build +# node:22-alpine npm often dies with "Exit handler never called" in Docker builds. +FROM docker.arvancloud.ir/node:20-alpine AS build WORKDIR /app COPY package.json package-lock.json ./ -RUN --mount=type=cache,target=/root/.npm \ - npm ci --no-audit --no-fund +RUN npm ci --no-audit --no-fund COPY . .