diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 7a9d27b..8982b3a 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -30,6 +30,9 @@ COPY packages/ui/package.json ./packages/ui/ COPY packages/config/package.json ./packages/config/ COPY apps/api/package.json ./apps/api/ +# Copy npm configuration for native binary architecture hints +COPY .npmrc ./ + # Install dependencies (no cache mount — Kaniko builds are ephemeral in CI) # Then explicitly rebuild node-pty from source since pnpm may skip postinstall # scripts or fail to find prebuilt binaries for this Node.js version diff --git a/apps/orchestrator/Dockerfile b/apps/orchestrator/Dockerfile index d3fc408..96fcf31 100644 --- a/apps/orchestrator/Dockerfile +++ b/apps/orchestrator/Dockerfile @@ -22,6 +22,9 @@ COPY packages/shared/package.json ./packages/shared/ COPY packages/config/package.json ./packages/config/ COPY apps/orchestrator/package.json ./apps/orchestrator/ +# Copy npm configuration for native binary architecture hints +COPY .npmrc ./ + # Install ALL dependencies (not just production) # No cache mount — Kaniko builds are ephemeral in CI RUN pnpm install --frozen-lockfile diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index ab37503..ecc960d 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -24,6 +24,9 @@ COPY packages/ui/package.json ./packages/ui/ COPY packages/config/package.json ./packages/config/ COPY apps/web/package.json ./apps/web/ +# Copy npm configuration for native binary architecture hints +COPY .npmrc ./ + # Install dependencies (no cache mount — Kaniko builds are ephemeral in CI) RUN pnpm install --frozen-lockfile @@ -38,6 +41,9 @@ COPY packages/ui/package.json ./packages/ui/ COPY packages/config/package.json ./packages/config/ COPY apps/web/package.json ./apps/web/ +# Copy npm configuration for native binary architecture hints +COPY .npmrc ./ + # Install production dependencies only RUN pnpm install --frozen-lockfile --prod