Rahul Bhardwaj Sleeyax commited on
Commit
65629d0
·
unverified ·
1 Parent(s): 5f62d1f

Update Dockerfile

Browse files

Co-authored-by: Sleeyax <[email protected]>

Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -4,12 +4,13 @@ WORKDIR /app
4
 
5
  RUN npm install -g pnpm
6
 
 
 
 
 
7
  # Copy the rest of your app's source code
8
  COPY . .
9
 
10
- # Install dependencies
11
- RUN pnpm install
12
-
13
  # Expose the port the app runs on
14
  EXPOSE 5173
15
 
 
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 . .
13
 
 
 
 
14
  # Expose the port the app runs on
15
  EXPOSE 5173
16