This commit is contained in:
hailin 2025-04-05 19:40:53 +08:00
parent e29c31b2e2
commit eaac955e68
1 changed files with 3 additions and 4 deletions

View File

@ -39,10 +39,9 @@
COPY --from=builder /app/package.json ./ COPY --from=builder /app/package.json ./
COPY --from=builder /app/pnpm-lock.yaml ./ COPY --from=builder /app/pnpm-lock.yaml ./
COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/.next ./.next COPY --from=builder /app/apps/blogai/.next ./.next
COPY --from=builder /app/public ./public COPY --from=builder /app/apps/blogai/public ./public
COPY --from=builder /app/next.config.js ./next.config.js COPY --from=builder /app/apps/blogai/next.config.js ./next.config.js
# 清理无用缓存,减小镜像体积 # 清理无用缓存,减小镜像体积
RUN rm -rf /root/.npm /root/.pnpm-store /tmp/* RUN rm -rf /root/.npm /root/.pnpm-store /tmp/*