From b697963186c25c22fa34249d5f32f98842171750 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-lehrer/Dockerfile | 4 ++-- studio-v2/Dockerfile | 4 ++-- website/Dockerfile | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin-lehrer/Dockerfile b/admin-lehrer/Dockerfile index 7fda5b0..4337dc2 100644 --- a/admin-lehrer/Dockerfile +++ b/admin-lehrer/Dockerfile @@ -34,8 +34,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/studio-v2/Dockerfile b/studio-v2/Dockerfile index 5937223..2184794 100644 --- a/studio-v2/Dockerfile +++ b/studio-v2/Dockerfile @@ -31,8 +31,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 application COPY --from=builder /app/public ./public diff --git a/website/Dockerfile b/website/Dockerfile index a4a1735..0221c98 100644 --- a/website/Dockerfile +++ b/website/Dockerfile @@ -34,8 +34,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