# Stage 1: Build Vue.js app FROM node:24.21.0-alpine AS builder WORKDIR /app COPY package.json package-lock.json ./ RUN npm ci COPY . . RUN npm run build # Stage 2: Serve with nginx FROM nginxinc/nginx-unprivileged:1.30.5-alpine USER root RUN apk upgrade --no-cache USER nginx COPY --from=builder /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 8080