简体中文
--ready-cmd
e2b template build --ready-cmd "<your-ready-command>"
e2b template build
e2b.toml
template_id = "0r0efkbfwzfp9p7qpc1c" dockerfile = "e2b.Dockerfile" template_name = "my-agent-sandbox" ready_cmd = "<your-ready-command>"
sleep 0
sleep 20
ready_cmd = 'curl -s -o /dev/null -w "%{http_code}" http://localhost:3000 | grep -q "200"'
ready_cmd = 'pgrep my-process-name > /dev/null'
ready_cmd = '[ -f /tmp/ready.flag ]'