File size: 400 Bytes
ed677ce
 
affff96
 
ed677ce
affff96
 
 
 
ed677ce
 
 
 
 
 
4a40a3a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Build Stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
# Install dependencies (will work now that package.json is fixed)
RUN npm install
COPY . .
RUN npm run build

# Serve Stage
FROM node:20-alpine
WORKDIR /app
RUN npm install -g serve
# Copy the 'dist' folder from the builder stage
COPY --from=builder /app/dist ./dist
EXPOSE 7860
CMD ["serve", "-s", "dist", "-l", "7860"]