APRK01 commited on
Commit
95b8dca
Β·
1 Parent(s): ff048f3

Add Dockerfile for Hugging Face deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Node.js 20 base image
2
+ FROM node:20
3
+
4
+ # Create and change to the app directory
5
+ WORKDIR /usr/src/app
6
+
7
+ # Copy package.json and package-lock.json first for caching
8
+ COPY package*.json ./
9
+
10
+ # Install dependencies
11
+ RUN npm install
12
+
13
+ # Copy the rest of the application code
14
+ COPY . .
15
+
16
+ # Expose the port (Render/HuggingFace use this for keep-alive)
17
+ EXPOSE 7860
18
+ ENV PORT=7860
19
+
20
+ # Start the bot
21
+ CMD [ "npm", "start" ]