Skip to content

feat(docker): add OpenCode example Dockerfile#500

Merged
sergeyklay merged 1 commit intomainfrom
feat/opencode-docker-example
Apr 26, 2026
Merged

feat(docker): add OpenCode example Dockerfile#500
sergeyklay merged 1 commit intomainfrom
feat/opencode-docker-example

Conversation

@sergeyklay
Copy link
Copy Markdown
Member

@sergeyklay sergeyklay commented Apr 26, 2026

🎯 Scope & Context

Type: Feat

Intent: Add examples/docker/opencode.Dockerfile that bundles Sortie with the OpenCode CLI (opencode-ai npm 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 from ghcr.io/sortie-ai/sortie:latest, uses node:24-slim as the base (OpenCode requires Node.js), installs opencode-ai@latest via npm, and creates a non-root sortie user at UID 1000.

⚠️ Risk Assessment

  • Breaking Changes: No breaking changes
  • Migrations/State: No migrations or state changes

Copilot AI review requested due to automatic review settings April 26, 2026 19:21
@sergeyklay sergeyklay requested a review from serghei-dev as a code owner April 26, 2026 19:21
@sergeyklay sergeyklay added the area:agent-adapter Agent interface, Claude Code adapter, Copilot adapter, mock label Apr 26, 2026
@sergeyklay sergeyklay linked an issue Apr 26, 2026 that may be closed by this pull request
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, installing opencode-ai via npm, running as non-root).
  • Updated examples/docker/README.md to 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.
Copy link

Copilot AI Apr 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sergeyklay sergeyklay merged commit e83d502 into main Apr 26, 2026
9 checks passed
@sergeyklay sergeyklay deleted the feat/opencode-docker-example branch April 26, 2026 19:26
@github-project-automation github-project-automation Bot moved this from Todo to Done in Sortie Roadmap Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent-adapter Agent interface, Claude Code adapter, Copilot adapter, mock

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add examples/docker/opencode.Dockerfile example

3 participants