The Open Standard for Generative UI
updated dockerfile for examples/openui-chat (#420)
Visharad Kashyap6f0848338b3b
diff --git a/examples/openui-chat/Dockerfile b/examples/openui-chat/Dockerfileindex b3a36dfe1..d6d5be06b 100644--- a/examples/openui-chat/Dockerfile+++ b/examples/openui-chat/Dockerfile@@ -17,6 +17,7 @@ COPY pnpm-workspace.yaml package.json pnpm-lock.yaml tsconfig.json ./COPY packages/openui-cli/package.json ./packages/openui-cli/COPY packages/react-ui/package.json ./packages/react-ui/COPY packages/react-headless/package.json ./packages/react-headless/+COPY packages/lang-core/package.json ./packages/lang-core/COPY packages/react-lang/package.json ./packages/react-lang/COPY examples/openui-chat/package.json ./examples/openui-chat/@@ -26,20 +27,20 @@ RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store \COPY packages/openui-cli ./packages/openui-cliCOPY packages/react-ui ./packages/react-uiCOPY packages/react-headless ./packages/react-headless+COPY packages/lang-core ./packages/lang-coreCOPY packages/react-lang ./packages/react-langCOPY examples/openui-chat ./examples/openui-chatRUN pnpm --filter @openuidev/cli buildRUN pnpm --filter @openuidev/react-ui buildRUN pnpm --filter @openuidev/react-headless build+RUN pnpm --filter @openuidev/lang-core buildRUN pnpm --filter @openuidev/react-lang buildWORKDIR /app/examples/openui-chatRUN node /app/packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt \&& pnpm build--# --------------------------------------------------# Runtime stage# --------------------------------------------------@@ -55,7 +56,7 @@ ENV PORT=3000 HOSTNAME=0.0.0.0RUN addgroup -S nodejs && adduser -S nextjs -G nodejsUSER nextjs-+# Copy full standalone output to avoid brittle partial-copy assumptionsCOPY --from=builder --chown=nextjs:nodejs /app/examples/openui-chat/.next/standalone ./@@ -70,4 +71,4 @@ EXPOSE 3000HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \CMD node -e "fetch('http://127.0.0.1:3000').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"-CMD ["node", "examples/openui-chat/server.js"]\ No newline at end of file+CMD ["node", "examples/openui-chat/server.js"]