diff --git a/Dockerfile b/Dockerfile index 205b2e0..7904216 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ # Stage 1 — Install dependencies FROM node:24-bookworm-slim AS deps -RUN corepack enable && corepack prepare pnpm@10.34.5 --activate +RUN npm install -g pnpm@10.34.5 WORKDIR /app COPY package.json pnpm-lock.yaml ./ RUN pnpm install --frozen-lockfile # Stage 2 — Build TypeScript and prune dev dependencies FROM node:24-bookworm-slim AS build -RUN corepack enable && corepack prepare pnpm@10.34.5 --activate +RUN npm install -g pnpm@10.34.5 WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY package.json pnpm-lock.yaml tsconfig.json ./ diff --git a/renovate.json b/renovate.json index 23e112b..c5ffa2c 100644 --- a/renovate.json +++ b/renovate.json @@ -10,10 +10,10 @@ "datasourceTemplate": "npm" }, { - "description": "Track the pnpm version corepack activates in the Dockerfile.", + "description": "Track the pnpm version installed in the Dockerfile.", "customType": "regex", "managerFilePatterns": ["/^Dockerfile$/"], - "matchStrings": ["corepack prepare (?pnpm)@(?\\S+) --activate"], + "matchStrings": ["npm install -g (?pnpm)@(?\\S+)"], "datasourceTemplate": "npm" } ]