Boombaaa commited on
Commit
5bea037
·
verified ·
1 Parent(s): 229b934

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Node.js image
2
+ FROM node:18
3
+
4
+ # Create an app directory
5
+ WORKDIR /app
6
+
7
+ # Copy package files and install
8
+ COPY package*.json ./
9
+ RUN npm install
10
+
11
+ # Copy all other files (like server.js and your public folder)
12
+ COPY . .
13
+
14
+ # Expose the correct port
15
+ EXPOSE 7860
16
+
17
+ # Start the app
18
+ CMD ["npm", "start"]