Skip to content

feat: add Docker image for openui-chat example (Closes #303) - #378

Closed
damiehttp wants to merge 1 commit into
thesysdev:mainfrom
damiehttp:feat/docker-openui-chat
Closed

feat: add Docker image for openui-chat example (Closes #303)#378
damiehttp wants to merge 1 commit into
thesysdev:mainfrom
damiehttp:feat/docker-openui-chat

Conversation

@damiehttp

Copy link
Copy Markdown

Adds a production-ready multi-stage Dockerfile for the openui-chat example.

What

Users can now build and run the openui-chat example with a single command — no local setup required.

docker build -t openui-chat -f examples/openui-chat/Dockerfile .
docker run -p 3000:3000 -e OPENAI_API_KEY=sk-... openui-chat

Implementation

  • Multi-stage build (deps → build → standalone runner) for minimal image size
  • pnpm workspace support — correctly resolves workspace:* dependencies
  • Next.js standalone output — production image ~180MB
  • Non-root user (nextjs, UID 1001) for security
  • Environment variables: OPENAI_API_KEY (required), PORT (default 3000)
  • .dockerignore for fast context transfer
  • Docker Compose example in updated README

Files Changed

  • examples/openui-chat/Dockerfile — new
  • examples/openui-chat/.dockerignore — new
  • examples/openui-chat/README.md — updated with Docker section

Closes #303

Adds a production-ready multi-stage Dockerfile for the openui-chat example,
enabling one-command build and run via Docker.

Features:
- Multi-stage build (deps → build → standalone runner)
- Handles pnpm workspace dependencies correctly
- Next.js standalone output for minimal image (~180MB)
- Non-root user (nextjs, UID 1001)
- Configurable via environment variables (OPENAI_API_KEY, PORT)
- .dockerignore for fast builds
- Docker Compose example in README

Usage:
  docker build -t openui-chat -f examples/openui-chat/Dockerfile .
  docker run -p 3000:3000 -e OPENAI_API_KEY=sk-... openui-chat

Closes thesysdev#303
@zahlekhan zahlekhan self-assigned this Mar 24, 2026
@zahlekhan

Copy link
Copy Markdown
Contributor

Thanks for your contribution. Your PR review is on hold since we have already assigned the issue to another contributor.
#305

@zahlekhan

Copy link
Copy Markdown
Contributor

Closing since the issue has been completed by another PR.

@zahlekhan zahlekhan closed this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker image for chat

2 participants