From f778e954556011dfb52d0f01be5636941e6bfe8b Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Wed, 28 Jan 2026 12:44:04 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(auth):=20use=20node:20-slim?= =?UTF-8?q?=20for=20DuckDB=20glibc=20compatibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/mana-core-auth/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/services/mana-core-auth/Dockerfile b/services/mana-core-auth/Dockerfile index 641ed73ab..bc61398c6 100644 --- a/services/mana-core-auth/Dockerfile +++ b/services/mana-core-auth/Dockerfile @@ -1,5 +1,6 @@ # Build stage -FROM node:20-alpine AS builder +# Using node:20-slim instead of alpine for DuckDB glibc compatibility +FROM node:20-slim AS builder # Install pnpm RUN npm install -g pnpm@9.15.0 @@ -21,7 +22,8 @@ COPY services/mana-core-auth/nest-cli.json ./ RUN pnpm build # Production stage -FROM node:20-alpine AS production +# Using node:20-slim instead of alpine for DuckDB glibc compatibility +FROM node:20-slim AS production # Install pnpm RUN npm install -g pnpm@9.15.0 @@ -43,9 +45,9 @@ COPY services/mana-core-auth/docker-entrypoint.sh ./ # Make entrypoint executable RUN chmod +x ./docker-entrypoint.sh -# Create non-root user -RUN addgroup -g 1001 -S nodejs && \ - adduser -S nestjs -u 1001 +# Create non-root user (Debian syntax) +RUN groupadd -g 1001 nodejs && \ + useradd -u 1001 -g nodejs nestjs # Change ownership RUN chown -R nestjs:nodejs /app