DeeCeeXxx commited on
Commit
634ef06
·
verified ·
1 Parent(s): e5b3292

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -4,16 +4,17 @@ FROM node:18-alpine
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy package.json before installing dependencies
8
  COPY package.json ./
 
9
 
10
- # Install dependencies (ignoring package-lock.json if missing)
11
  RUN npm install --omit=dev
12
 
13
  # Copy the rest of the application
14
  COPY . .
15
 
16
- # Expose the port (ensure your app listens on this)
17
  EXPOSE 3000
18
 
19
  # Start the application
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
+ # Copy package.json and package-lock.json
8
  COPY package.json ./
9
+ COPY package-lock.json ./
10
 
11
+ # Install dependencies
12
  RUN npm install --omit=dev
13
 
14
  # Copy the rest of the application
15
  COPY . .
16
 
17
+ # Expose the port
18
  EXPOSE 3000
19
 
20
  # Start the application