2026-04-01 15:46:28 +00:00
|
|
|
# ---- Build stage ----
|
|
|
|
|
FROM node:22-alpine AS builder
|
|
|
|
|
WORKDIR /app
|
2026-04-10 00:38:47 -05:00
|
|
|
COPY package.json package-lock.json* ./
|
|
|
|
|
RUN npm install && npm audit fix
|
2026-04-01 15:46:28 +00:00
|
|
|
COPY . .
|
|
|
|
|
RUN npx vite build
|
|
|
|
|
|
|
|
|
|
# ---- Serve stage ----
|
|
|
|
|
FROM nginx:1.27-alpine
|
|
|
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
|
EXPOSE 5173
|