scaffold: kind+Tilt cluster, api/ui/docs stubs, green at nvi.local.ar
This commit is contained in:
22
ctrl/Dockerfile.ui
Normal file
22
ctrl/Dockerfile.ui
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
Reference in New Issue
Block a user