DragonBot

Docker build & run (production)

These instructions build a production image and run it with a named volume for persistent data.

  1. Build the image (from the repo root):
docker build -t dragonbot:latest .
  1. Create a dedicated volume for persistent data (optional):
docker volume create dragonbot-data
  1. Run the container with environment variables supplied via a file or your orchestrator. Example (using an env file .env):
docker run -d \
  --name dragonbot \
  --mount source=dragonbot-data,target=/app/data \
  --env-file .env \
  -p 3000:3000 \
  --restart unless-stopped \
  dragonbot:latest

Notes and best practices