feat: add Docker image for openui-chat example (Closes #303) - #378
Closed
damiehttp wants to merge 1 commit into
Closed
feat: add Docker image for openui-chat example (Closes #303)#378damiehttp wants to merge 1 commit into
damiehttp wants to merge 1 commit into
Conversation
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
Contributor
|
Thanks for your contribution. Your PR review is on hold since we have already assigned the issue to another contributor. |
Contributor
|
Closing since the issue has been completed by another PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a production-ready multi-stage Dockerfile for the
openui-chatexample.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-chatImplementation
workspace:*dependenciesnextjs, UID 1001) for securityOPENAI_API_KEY(required),PORT(default 3000).dockerignorefor fast context transferFiles Changed
examples/openui-chat/Dockerfile— newexamples/openui-chat/.dockerignore— newexamples/openui-chat/README.md— updated with Docker sectionCloses #303