From 554ca81c9b9d78060945ad2b0e1879fb3e443a66 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sun, 22 Feb 2026 23:07:32 +0100 Subject: [PATCH] chore(image-processor): fix tfjs-node cross compile arch flags --- apps/image-service/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/image-service/Dockerfile b/apps/image-service/Dockerfile index 333e087..54c109d 100644 --- a/apps/image-service/Dockerfile +++ b/apps/image-service/Dockerfile @@ -15,7 +15,7 @@ RUN pnpm install --frozen-lockfile RUN for dir in $(find /app/node_modules -type d -path "*/@tensorflow/tfjs-node"); do \ cd $dir && \ rm -rf lib/napi-v8/* && \ - npm run install -- build-addon-from-source; \ + npm_config_build_from_source=true npm_config_arch=arm64 npm_config_target_arch=arm64 npm run install; \ done # Generate models explicitly for Docker RUN ls -la packages/image-processor/scripts || true