|
@@ -57,13 +57,11 @@ COPY --from=builder /app/package.json ./package.json
|
|
|
RUN mkdir -p /app/public/uploads && \
|
|
|
chown -R nextjs:nodejs /app && \
|
|
|
chmod -R 755 /app/public && \
|
|
|
- chmod 755 /app/public/uploads && \
|
|
|
- ls -la /app/public/uploads # 用于调试
|
|
|
+ chmod 755 /app/public/uploads
|
|
|
|
|
|
# 再次确认 uploads 目录的权限
|
|
|
RUN chown nextjs:nodejs /app/public/uploads && \
|
|
|
- chmod 755 /app/public/uploads && \
|
|
|
- ls -la /app/public/uploads # 再次用于调试
|
|
|
+ chmod 755 /app/public/uploads
|
|
|
|
|
|
|
|
|
# 设置为非 root 用户
|