From 7cb93f947cb4cb8cebf1c2c04c27412f4438d6d2 Mon Sep 17 00:00:00 2001 From: achmad Date: Fri, 29 May 2026 19:03:49 +0700 Subject: [PATCH] fix: give nextjs user a valid shell for su --system flag creates the user with /sbin/nologin, causing 'This account is not available' when entrypoint tries su. Co-Authored-By: Claude Opus 4.8 (1M context) --- backend/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index abc836d..f2a31fc 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -23,7 +23,7 @@ ENV NEXT_TELEMETRY_DISABLED=1 ENV DB_PATH=/app/data/zombie_invasion.db RUN addgroup --system --gid 1001 nodejs && \ - adduser --system --uid 1001 nextjs + adduser --system --uid 1001 --shell /bin/sh nextjs COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static