Rahul Bhardwaj commited on
Commit
a4a722b
·
1 Parent(s): 65629d0

Add corepack to setup pnpm

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -2,11 +2,10 @@ FROM node:20.18.0
2
 
3
  WORKDIR /app
4
 
5
- RUN npm install -g pnpm
6
-
7
  # Install dependencies (this step is cached as long as the dependencies don't change)
8
- COPY package.json package-lock.json .
9
- RUN pnpm install
 
10
 
11
  # Copy the rest of your app's source code
12
  COPY . .
 
2
 
3
  WORKDIR /app
4
 
 
 
5
  # Install dependencies (this step is cached as long as the dependencies don't change)
6
+ COPY package.json pnpm-lock.yaml ./
7
+
8
+ RUN corepack enable pnpm && pnpm install
9
 
10
  # Copy the rest of your app's source code
11
  COPY . .