File size: 289 Bytes
dee3edb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:20-alpine

WORKDIR /app

# Copy package files first → better caching
COPY package*.json ./
RUN npm ci

# Copy everything else
COPY . .

# Build
RUN npm run build

# Serve with a tiny static server
RUN npm install -g serve

EXPOSE 7860

CMD ["serve", "-s", "dist", "-l", "7860"]