12 lines
239 B
Docker
12 lines
239 B
Docker
# 1. Build Stage
|
|
FROM node:20-alpine AS builder
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
# 2. Serve Stage
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|