elmadany commited on
Commit
2663d4c
·
verified ·
1 Parent(s): 3052ba2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Node.js 18
2
+ FROM node:18
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy package files 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 Hugging Face expects
15
+ EXPOSE 7860
16
+
17
+ # Start the server
18
+ CMD ["node", "server.js"]