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
|
@@ -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
|