fix(docker): 修正Dockerfile中groupadd命令的语法错误
CI / build (20.15.1) (push) Failing after 15m38s

修复addgroup命令错误使用的问题,改用正确的groupadd命令
This commit is contained in:
2025-12-07 05:41:36 -08:00
parent 97187806e1
commit 42cf06c373
+1 -1
View File
@@ -5,7 +5,7 @@ FROM oven/bun:latest AS base
WORKDIR /app
# Create non-root user and set permissions
RUN addgroup -r -g 1001 nodejs && \
RUN groupadd -r -g 1001 nodejs && \
useradd -r -u 1001 -g nodejs -d /home/nextjs -m nextjs
# Copy build output and static files