Fix Dockerfile: use useradd instead of adduser for bun image

This commit is contained in:
Joey Eamigh 2026-04-05 12:17:32 -04:00
parent c88d4ba1a8
commit 40b4402398
No known key found for this signature in database
GPG Key ID: CE8C05DFFC53C9CB

View File

@ -14,7 +14,7 @@ RUN bun run build
FROM base AS runner FROM base AS runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
RUN adduser --system --uid 1001 nextjs RUN useradd --system --uid 1001 nextjs
COPY --from=builder /app/public ./public COPY --from=builder /app/public ./public
COPY --from=builder --chown=1001:1001 /app/.next/standalone ./ COPY --from=builder --chown=1001:1001 /app/.next/standalone ./
COPY --from=builder --chown=1001:1001 /app/.next/static ./.next/static COPY --from=builder --chown=1001:1001 /app/.next/static ./.next/static