From 9d7768495da5a046ea3215979a854148bf737f86 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Fri, 13 Feb 2026 23:41:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(auth):=20add=20build=20tools?= =?UTF-8?q?=20for=20bcrypt=20native=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/mana-core-auth/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/services/mana-core-auth/Dockerfile b/services/mana-core-auth/Dockerfile index a787d1837..f34edf7ed 100644 --- a/services/mana-core-auth/Dockerfile +++ b/services/mana-core-auth/Dockerfile @@ -2,8 +2,9 @@ # Using node:20-slim instead of alpine for DuckDB glibc compatibility FROM node:20-slim AS builder -# Install pnpm -RUN corepack enable && corepack prepare pnpm@9.15.0 --activate +# Install pnpm and build tools for native modules (bcrypt) +RUN corepack enable && corepack prepare pnpm@9.15.0 --activate \ + && apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/* WORKDIR /app @@ -18,8 +19,8 @@ COPY packages/shared-storage ./packages/shared-storage # Copy mana-core-auth COPY services/mana-core-auth ./services/mana-core-auth -# Install dependencies -RUN pnpm install --frozen-lockfile --ignore-scripts +# Install dependencies (without ignore-scripts to build native modules like bcrypt) +RUN pnpm install --frozen-lockfile # Build shared-storage first WORKDIR /app/packages/shared-storage