From c91b665f1ecf2f2180a54a9f84209f569260970d Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Mon, 24 Jun 2024 01:43:45 +0100 Subject: [PATCH] build: enforce pnpm v9.3.0 for frontend dep install --- src/frontend/debug.dockerfile | 2 +- src/frontend/prod.dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/debug.dockerfile b/src/frontend/debug.dockerfile index ed400dc57c..2ba5b4648f 100755 --- a/src/frontend/debug.dockerfile +++ b/src/frontend/debug.dockerfile @@ -3,7 +3,7 @@ WORKDIR /app COPY ./package.json ./pnpm-lock.yaml ./ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" -RUN corepack enable +RUN corepack enable && corepack use pnpm@9.3.0 RUN pnpm install ENV NODE_ENV development ENTRYPOINT ["pnpm", "run", "dev"] diff --git a/src/frontend/prod.dockerfile b/src/frontend/prod.dockerfile index 9fa1d6c008..c0cc092adb 100644 --- a/src/frontend/prod.dockerfile +++ b/src/frontend/prod.dockerfile @@ -7,7 +7,7 @@ WORKDIR /app COPY ./package.json ./pnpm-lock.yaml ./ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" -RUN corepack enable +RUN corepack enable && corepack use pnpm@9.3.0 RUN pnpm install ARG NODE_ENV