feat: refactor Docker setup for built-in cron scheduling and improved entrypoint handling

This commit is contained in:
2025-11-04 21:37:46 +01:00
parent 57e2bc392d
commit 9d5a9b438d
10 changed files with 481 additions and 240 deletions

View File

@@ -180,18 +180,29 @@ The bot will automatically configure cron (Linux/Raspberry Pi) or Task Scheduler
---
## Docker Quick Start
## 🐳 Docker Quick Start
For containerized deployment:
For containerized deployment with built-in scheduling:
```bash
# Ensure accounts.jsonc exists in src/
# Ensure accounts.jsonc and config.jsonc exist in src/
docker compose up -d
# View logs
docker logs -f microsoft-rewards-bot
docker logs -f microsoft-rewards-script
# Check status
docker compose ps
```
Container includes:
- ✅ Built-in cron scheduling
- ✅ Automatic timezone handling
- ✅ Random execution delays (anti-detection)
- ✅ Health checks
**⚠️ Note:** Buy Mode is not available in Docker (requires interactive terminal)
**📖 [Full Docker Guide](docs/docker.md)**
---