# A build container: writes the SPA to /output and exits. --emptyOutDir is # needed because /output is outside the project root. FROM node:22-slim RUN apt-get update && apt-get install -y make git && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY package.json package-lock.json ./ RUN --mount=type=cache,target=/root/.npm \ npm ci COPY . . CMD ["sh", "-c", "npx vite build --outDir /output --emptyOutDir"]