From aac0fe81b9c79e1d6b8f00c86a837a3a712441ad Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sun, 22 Feb 2026 22:44:03 +0100 Subject: [PATCH] fix(image-service): enforce arm64 cpu architecture for tfjs-node in dockerfile --- apps/image-service/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/image-service/Dockerfile b/apps/image-service/Dockerfile index e8f7acc..333e087 100644 --- a/apps/image-service/Dockerfile +++ b/apps/image-service/Dockerfile @@ -9,6 +9,8 @@ COPY . . # Note: Canvas needs build tools on Debian RUN apt-get update && apt-get install -y python3 make g++ libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev # Delete the prebuilt binary and force a clean rebuild from source for the correct container architecture +ENV npm_config_arch=arm64 +ENV npm_config_target_arch=arm64 RUN pnpm install --frozen-lockfile RUN for dir in $(find /app/node_modules -type d -path "*/@tensorflow/tfjs-node"); do \ cd $dir && \