From a4a722b4623b21a0f892c86bba46e4aebf305203 Mon Sep 17 00:00:00 2001 From: Rahul Bhardwaj Date: Thu, 10 Oct 2024 08:21:11 +0530 Subject: [PATCH] Add corepack to setup pnpm --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9704b599..cb670191 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,10 @@ FROM node:20.18.0 WORKDIR /app -RUN npm install -g pnpm - # Install dependencies (this step is cached as long as the dependencies don't change) -COPY package.json package-lock.json . -RUN pnpm install +COPY package.json pnpm-lock.yaml ./ + +RUN corepack enable pnpm && pnpm install # Copy the rest of your app's source code COPY . .