From 863055768e80b8a52df1434101223fede6478041 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Thu, 12 Mar 2026 10:11:50 -0300 Subject: [PATCH] fix(docker): copy native-binary-compat.mjs into build image postinstall.mjs imports native-binary-compat.mjs but the Dockerfile only copied postinstall.mjs, causing ERR_MODULE_NOT_FOUND during npm ci: Cannot find module '/app/scripts/native-binary-compat.mjs' imported from /app/scripts/postinstall.mjs --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index dc55fcc550..cc36e7fd6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ WORKDIR /app COPY package*.json ./ COPY scripts/postinstall.mjs ./scripts/postinstall.mjs +COPY scripts/native-binary-compat.mjs ./scripts/native-binary-compat.mjs RUN if [ -f package-lock.json ]; then npm ci --no-audit --no-fund; else npm install --no-audit --no-fund; fi COPY . ./