Container
Docker Container Deployment
Hardened Dockerfile on node:20-alpine with persistent volume mounting and non-root execution.
Build and Run Container
# Build Docker image
docker build -t argus-bot:1.0.0 .
# Run with persistent volume
docker run -d \
--name argus-bot \
--restart unless-stopped \
-p 3000:3000 \
-v argus_data:/data \
-e MC_HOST="mc.myserver.net" \
-e MC_PORT=25565 \
-e MC_VERSION="1.20.1" \
-e OWNER_USERNAME="ShadowPace" \
-e DASHBOARD_PASSWORD="MySecurePassword123" \
argus-bot:1.0.0
Key Container Characteristics
- Non-root User: Runs under unprivileged UID/GID 1000 (
node). - Signal Forwarding: Uses exec syntax
CMD ["node", "index.js"]to captureSIGINT/SIGTERMand execute state snapshot persistence before exit. - Exposed Port: Port 3000 serves the WebGL dashboard and WebSocket telemetry stream.