Midnightar commited on
Commit
8f6257d
·
verified ·
1 Parent(s): 561b87d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Node.js 18 LTS
2
+ FROM node:18
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy package.json and install dependencies
8
+ COPY package*.json ./
9
+ RUN npm install --only=production
10
+
11
+ # Copy all project files
12
+ COPY . .
13
+
14
+ # Expose port (Hugging Face default)
15
+ EXPOSE 7860
16
+
17
+ # Start the Node.js app
18
+ CMD ["npm", "start"]