alexcdev1 6 months ago
parent
commit
44de65a47a
1 changed files with 0 additions and 3 deletions
  1. 0 3
      Dockerfile.prod

+ 0 - 3
Dockerfile.prod

@@ -44,9 +44,6 @@ RUN apk add --no-cache bash
 RUN addgroup --system --gid 1001 nodejs
 RUN adduser --system --uid 1001 nextjs
 
-# 创建 uploads 目录并设置权限
-RUN mkdir -p /app/public/uploads && chown -R nextjs:nodejs /app/public
-
 # 复制必要文件
 COPY --from=builder /app/public ./public
 COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next