clone3 commited on
Commit
f179b0f
·
verified ·
1 Parent(s): c1e857b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -4
Dockerfile CHANGED
@@ -1,7 +1,18 @@
1
- FROM node:20-slim
 
 
 
2
  WORKDIR /app
 
 
3
  COPY package*.json ./
4
  RUN npm install
5
- COPY server.js .
6
- EXPOSE 3000
7
- CMD ["node", "server.js"]
 
 
 
 
 
 
 
1
+ # Use the official Node.js image
2
+ FROM node:18
3
+
4
+ # Set working directory inside the container
5
  WORKDIR /app
6
+
7
+ # Copy package.json and install dependencies
8
  COPY package*.json ./
9
  RUN npm install
10
+
11
+ # Copy the rest of the app code
12
+ COPY . .
13
+
14
+ # Expose the port
15
+ EXPOSE 8080
16
+
17
+ # Run the app
18
+ CMD ["npm", "start"]