fix(docker): 修正Dockerfile中的用户创建命令和CI分支条件
CI / build (20.15.1) (push) Failing after 15m20s

修复Dockerfile中使用addgroup/adduser命令导致的兼容性问题,改用groupadd/useradd
修正CI配置中分支条件判断错误,将dev改为develop
This commit is contained in:
2026-01-03 20:10:53 -08:00
parent 43c909d1f2
commit c381a2b2ba
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ FROM oven/bun:latest AS base
WORKDIR /app
# Create a non-root user for running the production application
RUN addgroup --system --gid 1001 nodejs \
&& adduser --system --uid 1001 nextjs
RUN groupadd -r -g 1001 nodejs \
&& useradd -r -u 1001 -g nodejs nextjs
# Change to non-root user
USER nextjs