Docker 部署
Docker 提供最简单的 Clawdbot 部署方式,环境一致且更新简单。
# 拉取并运行docker run -d \ --name clawdbot \ -e ANTHROPIC_API_KEY=your_key \ -e TELEGRAM_BOT_TOKEN=your_token \ ghcr.io/clawdbot/clawdbot:latestDocker Compose
Section titled “Docker Compose”创建 docker-compose.yml:
version: '3.8'
services: clawdbot: image: ghcr.io/clawdbot/clawdbot:latest container_name: clawdbot restart: unless-stopped env_file: - .env volumes: - ./data:/app/data ports: - "8080:8080"启动:
docker-compose up -d# 查看日志docker logs -f clawdbot
# 重启docker restart clawdbot
# 更新docker pull ghcr.io/clawdbot/clawdbot:latestdocker-compose up -d