mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-30 22:55:52 +00:00
- Dockerfile: Alpine + Node 22 + Mosquitto + supervisord - Auto-copies config.example.json if no config.json mounted - Named volume for data persistence (SQLite + Mosquitto) - Ports: 3000 (web), 1883 (MQTT) - .dockerignore excludes data, config, git, benchmarks - README updated with Docker quickstart
10 lines
290 B
Bash
10 lines
290 B
Bash
#!/bin/sh
|
|
|
|
# Copy example config if no config.json exists
|
|
if [ ! -f /app/config.json ]; then
|
|
echo "[entrypoint] No config.json found, copying from config.example.json"
|
|
cp /app/config.example.json /app/config.json
|
|
fi
|
|
|
|
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|