13 lines
259 B
Docker
13 lines
259 B
Docker
# Build Stage
|
|
FROM node:22-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# Runtime Stage
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/dist/*/browser /usr/share/nginx/html
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"] |