From 7b8f3a4f64be2cacb7291d80f7e92395deb35b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20H=2E=20Fjeld?= Date: Mon, 28 Oct 2024 14:09:24 +0100 Subject: [PATCH] devops: Use latest corepack To avoid build issues with using an ancient or unstable version coming with node. --- app/Dockerfile | 3 ++- app/package.json | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index fd4d8cb05..36ef3f91f 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -6,7 +6,8 @@ RUN if [ "$(head -n 1 .nvmrc | cut -d'.' -f1)" != "v20" ]; then \ fi FROM base AS build -RUN corepack enable pnpm && corepack install -g pnpm +RUN corepack enable +RUN corepack prepare pnpm@latest --activate WORKDIR /app COPY pnpm-lock.yaml ./ RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm fetch --frozen-lockfile diff --git a/app/package.json b/app/package.json index aed09696c..caa686e07 100644 --- a/app/package.json +++ b/app/package.json @@ -72,6 +72,5 @@ "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "^5.6.3" - }, - "packageManager": "pnpm@9.12.1+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4" + } }