16.1. Docker#
Build and run FlareInspect with Docker.
16.1.1. Build the Image#
docker build -t flareinspect .
The Dockerfile uses a multi-stage build on node:22-alpine, runs as a non-root user, and includes a health check.
16.1.2. Run an Assessment#
docker run -it --rm \
-e CLOUDFLARE_TOKEN=YOUR_CLOUDFLARE_TOKEN \
-v $(pwd)/output:/app/output \
flareinspect assess
16.1.3. Run the Web Dashboard#
docker run -it --rm \
-p 3000:3000 \
-e CLOUDFLARE_TOKEN=YOUR_CLOUDFLARE_TOKEN \
-v $(pwd)/data:/app/web/data \
flareinspect node web/server.js
16.1.4. Docker Compose#
docker compose up flareinspect-web
The compose file exposes:
flareinspectfor CLI executionflareinspect-webfor the dashboard athttp://localhost:3000flareinspect-devfor interactive development