chore(image-processor): fix tfjs-node cross compile arch flags

This commit is contained in:
2026-02-22 23:07:32 +01:00
parent aac0fe81b9
commit 554ca81c9b

View File

@@ -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