FROM node:22-slim AS build RUN corepack enable && corepack prepare pnpm@latest --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 docs/ /usr/share/nginx/docs/ COPY ctrl/nginx.conf /etc/nginx/conf.d/default.conf