Sign inSign up

sbx/opencode-image

Verified Publisher

By Docker, Inc

•Updated about 8 hours ago

Base image for the OpenCode kit for Docker Sandboxes

Image
0

9.3K

sbx/opencode-image repository overview

⁠sbx/opencode-image

Base image for the OpenCode kit for Docker Sandboxes⁠.

⁠Contents

Built on docker/sandbox-templates:shell-docker: the standard sandbox tool chain plus a Docker engine, requesting Docker-in-Docker via com.docker.sandboxes.start-docker=true. On top of that:

  • opencode⁠, installed by its official v2 installer at /home/agent/.opencode/bin/opencode

⁠Installation

The image downloads https://opencode.ai/v2/install and runs it with --no-modify-path. The installer downloads the platform-specific binary tarball from the npm registry, selecting the architecture, libc and x86 AVX2 variant without running npm or requiring Node during the build.

The Dockerfile explicitly adds /home/agent/.opencode/bin to PATH, so the binary is available to the container entrypoint and other exec'd processes without editing shell startup files. The agent user owns this directory, so OpenCode's native updater can replace the binary in place.

⁠Build args

  • BASE_IMAGE — re-point or digest-pin the base.
  • OPENCODE_VERSION — optionally pin a published version (1.2.3, no leading v). Left empty, the installer resolves the newest published version.

Runs as the non-root agent user, with CMD ["opencode"].

⁠Kit

docker.io/sbx/opencode-kit⁠

Tag summary

Content type

Image

Digest

sha256:63d2a825f…

Size

791.9 MB

Last updated

about 8 hours ago

docker pull sbx/opencode-image