FROM node:22-slim AS build # Pin pnpm to v9 — v10 treats "ignored build scripts" (esbuild, vue-demi) as # fatal under CI=true. Allowlisting them belongs in spr's framework # package.json; until that lands, v9's lenient behavior keeps us building. RUN corepack enable && corepack prepare pnpm@9 --activate WORKDIR /ui COPY ui/framework/ framework/ COPY ui/app/ app/ ENV CI=true WORKDIR /ui/framework RUN pnpm install WORKDIR /ui/app RUN pnpm install && pnpm run build FROM nginx:alpine COPY --from=build /ui/app/dist /usr/share/nginx/html COPY ctrl/nginx.conf /etc/nginx/conf.d/default.conf