fix:优化docker构建速度

This commit is contained in:
2025-11-13 15:27:23 +08:00
parent b6de82387c
commit 1f21fbfe16
3 changed files with 50 additions and 3 deletions

View File

@@ -36,7 +36,6 @@ RUN pnpm --filter backend build
FROM base AS runtime
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY apps/backend/package.json ./apps/backend/
# Copy node_modules from deps stage and prune to production to avoid network