Add optional skill directory mounts for host-based opencode skills

This commit is contained in:
2026-04-10 13:05:55 +02:00
parent 476d9fb4f5
commit 9b1f7d1028
4 changed files with 21 additions and 3 deletions
+10
View File
@@ -109,6 +109,16 @@ volumes:
- ./my-opencode.json:/home/developer/.config/opencode/opencode.json:ro
```
### Custom skills
Mount your host's opencode skills into the container:
```yaml
volumes:
- ~/.config/opencode/skills:/home/developer/.config/opencode/skills:ro
- ~/.agents/skills:/home/developer/.agents/skills:ro
```
### Rebuilding the Image
`docker compose run` and `docker compose up` use the existing image — they **do not rebuild** when you change the Dockerfile or build args (e.g. updating `OPENCODE_VERSION`). Rebuild explicitly: