Skip to content

Docker image for chat #303

@zahlekhan

Description

@zahlekhan

ASSIGNED TO shogun444

Is your feature request related to a problem? Please describe.
Running the OpenUI chat example currently requires cloning the repo, installing dependencies, and configuring the environment manually. This creates friction for users who just want to try OpenUI quickly or deploy it in containerized environments.

Describe the solution you'd like
Create a Dockerfile for the existing examples/openui-chat app so users can build and run it with a single command. The image should:

  • Package the openui-chat Next.js example as a production-ready Docker image.
  • Support configuration via environment variables (OPENAI_API_KEY, model selection, API base URL, etc.).
  • Work with a simple workflow like:
docker build -t openui-chat .
docker run -p 3000:3000 -e OPENAI_API_KEY=sk-... openui-chat
  • Document all supported environment variables in the README.

Describe alternatives you've considered

  • Relying solely on the CLI scaffolding (npx @openuidev/cli create), but Docker provides a more portable and reproducible setup, especially for deployment and team environments.
  • Publishing to a container registry (Docker Hub, GHCR), but for now a local Dockerfile is sufficient to unblock users.

Additional context
The Dockerfile should live alongside the example in examples/openui-chat/. The Next.js docs provide a reference Dockerfile for containerized deployments that can serve as a starting point.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions