Docker
The published image is ghcr.io/maxylev/gra (multi-arch: linux/amd64, linux/arm64): the release binary on a minimal Alpine base with CA certificates, libgcc/libstdc++, tzdata and a non-root user.
Run
sh
docker run -d --name gra \
-v "$PWD/data:/data" \
-e GRA_BOT_TOKEN="123456:..." \
-e GRA_ALLOWED_USER_IDS="11111111" \
--restart unless-stopped \
ghcr.io/maxylev/gra:latestThe database lives at /data/gra.db (GRA_DB_PATH). The container runs as uid 10001, and /data is owned by that user. Make a mounted host directory writable:
sh
chown -R 10001 dataConfig file
Mount a gra.toml and point GRA_CONFIG at it:
sh
docker run -d --name gra \
-v "$PWD/gra.toml:/etc/gra.toml:ro" \
-v "$PWD/data:/data" \
-e GRA_CONFIG=/etc/gra.toml \
--restart unless-stopped \
ghcr.io/maxylev/gra:latestGRA_DB_PATH=/data/gra.db is set in the image and overrides db_path from the file; pass -e GRA_DB_PATH=... to change it.
Admin commands
The image is the full CLI:
sh
docker run --rm -v "$PWD/data:/data" ghcr.io/maxylev/gra:latest \
doctor --cookies file:/data/cookies.txt --username natgeoBuild locally
sh
docker build -t gra:local .The build stage uses rust:1.99-alpine3.24 with cmake/perl/clang (BoringSSL via wreq) and links musl dynamically (RUSTFLAGS="-C target-feature=-crt-static"), because bindgen loads libclang at build time.