Drop narration, history and restated-code comments across the repo, keep short ones for security boundaries, upstream quirks and ordering constraints, and record the convention in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
11 lines
409 B
Docker
11 lines
409 B
Docker
# 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"]
|