Add Docker Compose setup and clean up legacy code

- Add docker-compose.yml with volume mounts for config/sfx
- Simplify npm scripts (up/down/build/restart/logs)
- Update README.md and CLAUDE.md with new commands
- Remove unused lib/ directory (migrated to src/)
- Update package.json scripts to cleaner naming

Benefits:
- Update configs and sound effects without rebuilding image
- Simplified Docker workflow management
- Cleaner project structure

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Chris Ham
2025-08-16 12:06:40 -07:00
parent e53360e887
commit 9661ba92d5
8 changed files with 557 additions and 183 deletions

View File

@@ -20,8 +20,13 @@
"scripts": {
"start": "node src/index.js",
"dev": "nodemon src/index.js",
"docker:build": "docker build -t ghbot:${VERSION:-latest} .",
"docker:run": "docker run -d --name ghbot --restart always ghbot:${VERSION:-latest}"
"up": "docker compose up -d",
"down": "docker compose down",
"build": "docker compose build",
"restart": "docker compose restart",
"logs": "docker compose logs -f",
"image:build": "docker build -t ghbot:${VERSION:-latest} .",
"image:run": "docker run -d --name ghbot --restart always ghbot:${VERSION:-latest}"
},
"author": "https://github.com/greenham",
"license": "MIT"