# Stage 1: build Vue frontend FROM node:20-alpine AS frontend-builder WORKDIR /app COPY frontend/package.json frontend/package-lock.json ./ RUN npm ci COPY frontend/ . RUN npm run build # Stage 2: nginx with built frontend baked in FROM nginx:1.27-alpine COPY --from=frontend-builder /app/dist /app/frontend/dist