clouddreamai-cicd-setup 1.5.26 → 1.5.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clouddreamai-cicd-setup",
3
- "version": "1.5.26",
3
+ "version": "1.5.27",
4
4
  "description": "CloudDreamAI GitLab CI/CD 自动配置工具 - 支持 NestJS/Vue/React 项目的一键 CI/CD 配置",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,8 +24,9 @@ FROM node:20-alpine AS production
24
24
  RUN addgroup -g 1001 -S nodejs && \
25
25
  adduser -S nestjs -u 1001
26
26
 
27
- # 设置工作目录
27
+ # 设置工作目录并确保 nestjs 用户拥有完整权限
28
28
  WORKDIR /app
29
+ RUN chown nestjs:nodejs /app
29
30
 
30
31
  # 从构建阶段复制 node_modules 和构建产物
31
32
  COPY --from=builder --chown=nestjs:nodejs /app/node_modules ./node_modules