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

# Set working directory
WORKDIR /app

# Copy package files
COPY package*.json ./

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

# Copy source code
COPY src ./src

# Expose Hugging Face port
EXPOSE 7860

# Set NODE_ENV to production
ENV NODE_ENV=production
ENV PORT=7860

# Start the server
CMD ["node", "src/server.js"]