Files
skillshare/docker-compose.sandbox.yml
T
Willie 570195d1a2 feat: enhance skill template, improve search UX, and harden playground
- new: redesign SKILL.md template based on Anthropic's skill-building
  guide — description now includes WHAT+WHEN trigger format, step-based
  instructions (Gather/Execute/Validate), examples, and troubleshooting
- search: prompt for keyword when run without arguments instead of
  auto-browsing popular skills
- playground: default shell to $HOME (/sandbox-home) and mount source
  as read-only to prevent accidental host file modifications
2026-02-09 21:43:10 +08:00

60 lines
1.3 KiB
YAML

x-sandbox-common: &sandbox-common
build:
context: .
dockerfile: docker/sandbox/Dockerfile
working_dir: /workspace
environment:
GOCACHE: /go/build-cache
volumes:
- .:/workspace
- go-mod-cache:/go/pkg/mod
- go-build-cache:/go/build-cache
services:
sandbox-offline:
<<: *sandbox-common
profiles:
- offline
command:
- ./scripts/test.sh
network_mode: none
environment:
HOME: /tmp
GOCACHE: /go/build-cache
sandbox-online:
<<: *sandbox-common
profiles:
- online
command:
- ./scripts/test.sh
environment:
HOME: /tmp
GOCACHE: /go/build-cache
sandbox-playground:
<<: *sandbox-common
profiles:
- playground
command:
- sleep
- infinity
ports:
- "19420:19420"
environment:
HOME: /sandbox-home
GOCACHE: /go/build-cache
PATH: /sandbox-home/.local/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
GITHUB_TOKEN: ${SKILLSHARE_PLAYGROUND_GITHUB_TOKEN:-}
volumes:
- .:/workspace:ro
- /workspace/internal/server/dist # writable overlay for go:embed (entrypoint copies UI assets here)
- go-mod-cache:/go/pkg/mod
- go-build-cache:/go/build-cache
- playground-home:/sandbox-home
volumes:
go-mod-cache:
go-build-cache:
playground-home: