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

# Set working directory inside the container
WORKDIR /app

# Copy package configurations
COPY package*.json ./

# Install production dependencies
RUN npm ci --only=production

# Copy all server code
COPY . .

# Hugging Face Spaces requires exposing and running on port 7860
ENV PORT=7860
EXPOSE 7860

# Command to run our backend server
CMD ["node", "server.js"]