From 4e0ddea6503eb74eafd48d85a421a1e5b9c90a6b Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Fri, 6 Mar 2026 22:38:31 +0100 Subject: [PATCH] fix: use Alpine-compatible addgroup/adduser flags in Dockerfiles Replace --system/--gid/--uid (Debian syntax) with -S/-g/-u (BusyBox/Alpine). Coolify ARG injection causes exit code 255 with Debian-style flags. Co-Authored-By: Claude Opus 4.6 --- admin-compliance/Dockerfile | 4 ++-- developer-portal/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin-compliance/Dockerfile b/admin-compliance/Dockerfile index 6fb0577..f50b764 100644 --- a/admin-compliance/Dockerfile +++ b/admin-compliance/Dockerfile @@ -36,8 +36,8 @@ WORKDIR /app ENV NODE_ENV=production # Create non-root user -RUN addgroup --system --gid 1001 nodejs -RUN adduser --system --uid 1001 nextjs +RUN addgroup -S -g 1001 nodejs +RUN adduser -S -u 1001 -G nodejs nextjs # Copy built assets COPY --from=builder /app/public ./public diff --git a/developer-portal/Dockerfile b/developer-portal/Dockerfile index 20267ee..0bcfd53 100644 --- a/developer-portal/Dockerfile +++ b/developer-portal/Dockerfile @@ -24,8 +24,8 @@ WORKDIR /app ENV NODE_ENV=production # Create non-root user -RUN addgroup --system --gid 1001 nodejs -RUN adduser --system --uid 1001 nextjs +RUN addgroup -S -g 1001 nodejs +RUN adduser -S -u 1001 -G nodejs nextjs # Copy built assets COPY --from=builder /app/public ./public