veltrixcode commited on
Commit
17840ec
·
verified ·
1 Parent(s): 2fddfd6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Node.js image
2
+ FROM node:18
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 the rest of your application
14
+ COPY . .
15
+
16
+ # Hugging Face Spaces provides a PORT env variable. Your app should listen on it.
17
+ ENV PORT=7860
18
+
19
+ # Expose the port (not strictly required for HF Spaces, but good practice)
20
+ EXPOSE $PORT
21
+
22
+ # Start the app
23
+ CMD ["npm", "start"]