File size: 382 Bytes
c63ec95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use official Node.js runtime as a base image
FROM node:18-slim

# Set working directory
WORKDIR /app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of your app files
COPY . .

# Expose the port your app listens on (default 7860 for HF Spaces)
EXPOSE 7860

# Start your Node.js app
CMD ["node", "index.js"]