KRISH09bha commited on
Commit
6f884f8
·
verified ·
1 Parent(s): 62eee7b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Node.js LTS version as base image
2
+ FROM node:20
3
+
4
+ # Create app directory
5
+ WORKDIR /app
6
+
7
+ # Copy package.json and package-lock.json (if available)
8
+ COPY package*.json ./
9
+
10
+ # Install dependencies
11
+ RUN npm install
12
+
13
+ # Copy all other source files
14
+ COPY . .
15
+
16
+ # Set environment variable for the port required by Hugging Face
17
+ ENV PORT=7860
18
+
19
+ # Expose the port the app runs on
20
+ EXPOSE 7860
21
+
22
+ # Start the application
23
+ CMD ["node", "server.js"]