File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,13 +14,7 @@ RUN pnpm i --frozen-lockfile
1414FROM node:20-bookworm-slim as runner
1515
1616WORKDIR /usr/crowd/app
17- RUN apt-get update && apt-get install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
18-
19- # Copy corepack + pnpm from builder — avoids a network download in the runner stage
20- COPY --from=builder /usr/local/lib/node_modules/corepack /usr/local/lib/node_modules/corepack
21- COPY --from=builder /usr/local/bin/corepack /usr/local/bin/corepack
22- COPY --from=builder /root/.cache/node/corepack /root/.cache/node/corepack
23- RUN corepack enable pnpm
17+ RUN npm install -g corepack@latest && corepack enable pnpm && corepack prepare pnpm@9.15.0 --activate && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
2418
2519COPY --from=builder /usr/crowd/app/node_modules ./node_modules
2620COPY --from=builder /usr/crowd/app/services/base.tsconfig.json ./services/base.tsconfig.json
You can’t perform that action at this time.
0 commit comments