TuringsSolutions commited on
Commit
071c6d6
·
verified ·
1 Parent(s): 1ab89fd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -7,7 +7,8 @@ WORKDIR /usr/src/app
7
  # Copy package.json and package-lock.json
8
  COPY package*.json ./
9
 
10
- # Install dependencies
 
11
  RUN npm install
12
 
13
  # Copy the rest of the application code
@@ -17,4 +18,4 @@ COPY . .
17
  EXPOSE 7860
18
 
19
  # Define the command to run the app
20
- CMD ["node", "app.js"]
 
7
  # Copy package.json and package-lock.json
8
  COPY package*.json ./
9
 
10
+ # Clear npm cache and install dependencies
11
+ RUN npm cache clean --force
12
  RUN npm install
13
 
14
  # Copy the rest of the application code
 
18
  EXPOSE 7860
19
 
20
  # Define the command to run the app
21
+ CMD ["node", "app.js"]