# Build stage FROM node:22-alpine AS build WORKDIR /app COPY package.json ./ RUN npm install --no-audit --no-fund COPY . . RUN npm run build # Serve stage FROM nginx:1.27-alpine COPY --from=build /app/build /usr/share/nginx/html EXPOSE 80 # Default nginx config serves /usr/share/nginx/html; for SPA fallback, drop in a # minimal config here later if SvelteKit routes need the fallback to index.html.