File size: 469 Bytes
e5c9966
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use a lightweight Node.js image
FROM node:20-slim

# Create app directory
WORKDIR /usr/src/app

# Copy package files first to optimize Docker layer caching
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy all the remaining project files
COPY . .

# Define the port Hugging Face Spaces expects apps to run on
EXPOSE 7860

# Force the bot's keep-alive web server to run on port 7860
ENV PORT=7860

# Command to start the bot
CMD [ "npm", "start" ]