Official OpenCode image with basic tools.
10K+
Docker image for opencode with dynamic configuration support for Git CLI tools.
Built on top of the official OpenCode image and automatically rebuilt when a new upstream version is published.
Includes:
| Variable | Tool | Description |
|---|---|---|
GIT_USER_NAME | git | Commit user name |
GIT_USER_EMAIL | git | Commit email |
GH_TOKEN | gh | GitHub authentication token |
GH_GIT_PROTOCOL | gh | Git protocol (ssh or https) |
GLAB_TOKEN | glab | GitLab authentication token |
GLAB_GIT_PROTOCOL | glab | Git protocol (ssh or https) |
GIT_SSH_KEY | git | Private SSH key for Git authentication |
docker pull reduardo7/opencode:latest
docker build -t opencode-docker .
docker run -it --rm \
-e GIT_USER_NAME="Your Name" \
-e GIT_USER_EMAIL="[email protected]" \
reduardo7/opencode:latest
docker run -it --rm \
-e GIT_USER_NAME="Your Name" \
-e GIT_USER_EMAIL="[email protected]" \
-e GH_TOKEN="ghp_yourToken" \
-e GH_GIT_PROTOCOL="ssh" \
reduardo7/opencode:latest
docker run -it --rm \
-e GIT_USER_NAME="Your Name" \
-e GIT_USER_EMAIL="[email protected]" \
-e GLAB_TOKEN="glpat-yourToken" \
-e GLAB_GIT_PROTOCOL="ssh" \
reduardo7/opencode:latest
docker run -it --rm \
-e GIT_USER_NAME="Your Name" \
-e GIT_USER_EMAIL="[email protected]" \
-e GIT_SSH_KEY="$(cat ~/.ssh/id_ed25519)" \
ghcr.io/reduardo7/opencode:latest
Content type
Image
Digest
sha256:7ae5b75b8…
Size
110.6 MB
Last updated
about 8 hours ago
docker pull reduardo7/opencode