feat(docker): add OpenCode example Dockerfile#500
Merged
sergeyklay merged 1 commit intomainfrom Apr 26, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Docker example that bundles the Sortie binary with the OpenCode CLI, matching the existing agent example images and documenting it alongside the others.
Changes:
- Added
examples/docker/opencode.Dockerfile(multi-stage build copying Sortie, installingopencode-aivia npm, running as non-root). - Updated
examples/docker/README.mdto include the new OpenCode example in build instructions and the examples table.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
examples/docker/opencode.Dockerfile |
New example image: node:24-slim + opencode-ai + git tooling + Sortie entrypoint/healthcheck |
examples/docker/README.md |
Documents the new opencode.Dockerfile alongside existing examples |
|
|
||
| FROM node:24-slim | ||
|
|
||
| # Install git for repository-backed runs. |
There was a problem hiding this comment.
The comment says only git is being installed, but this layer also installs wget (required for the HEALTHCHECK below). Consider updating the comment to reflect both packages so the dependency is clear.
Suggested change
| # Install git for repository-backed runs. | |
| # Install git for repository-backed runs and wget for the HEALTHCHECK below. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
🎯 Scope & Context
Type: Feat
Intent: Add
examples/docker/opencode.Dockerfilethat bundles Sortie with the OpenCode CLI (opencode-ainpm package) in a single container image, mirroring the existing Claude Code, Copilot, and Codex examples.Related Issues: #478
🧭 Reviewer Guide
Complexity: Low
Entry Point
examples/docker/opencode.Dockerfile- new Dockerfile following the same multi-stage pattern as the other agent examples: copies the Sortie binary fromghcr.io/sortie-ai/sortie:latest, usesnode:24-slimas the base (OpenCode requires Node.js), installsopencode-ai@latestvia npm, and creates a non-rootsortieuser at UID 1000.