|
@@ -44,6 +44,9 @@ 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
|