# syntax=docker/dockerfile:1.7 # ── Build ───────────────────────────────────────────────────────────────────── FROM node:22-alpine AS build WORKDIR /app COPY package*.json ./ RUN --mount=type=cache,target=/root/.npm \ npm ci COPY . . RUN npm run build # ── Runtime ─────────────────────────────────────────────────────────────────── FROM nginx:1.27-alpine AS runtime COPY --from=build /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80