User-2468 commited on
Commit
95d5e96
·
verified ·
1 Parent(s): b7bbde3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile CHANGED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM node:18-slim
3
+
4
+ # Set work directory
5
+ WORKDIR /app
6
+
7
+ # Copy package.json and install dependencies
8
+ COPY package.json ./
9
+ RUN npm install --production
10
+
11
+ # Copy source code
12
+ COPY . .
13
+
14
+ # Expose port (Hugging Face expects 7860 by default, but you can use 3000)
15
+ EXPOSE 3000
16
+
17
+ # Start app
18
+ CMD ["node", "index.js"]