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

# Set working directory
WORKDIR /app

# Copy package files and install dependencies
COPY package*.json ./
RUN npm install --production

# Copy the rest of the application code
COPY . .

# Hugging Face Spaces requires the app to listen on port 7860
ENV PORT=7860
ENV NODE_ENV=production

# Expose the port
EXPOSE 7860

# Start the application directly
CMD ["node", "server/index.js"]