File size: 447 Bytes
4831e20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Node image
FROM node:20-slim

WORKDIR /app

# Copy package files
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy source
COPY . .

# Build the app
RUN npm run build

# Expose Hugging Face default port
EXPOSE 7860

# Serve the static files using 'serve' package
# We use npx to run it without adding it to package.json, 
# or we can use a simple node script if preferred.
CMD ["npx", "serve", "-s", "dist", "-l", "7860"]