Docker image for Magika, a novel AI-powered file type detection tool
4.3K
Docker image for Magika, a novel AI-powered file type detection tool that relies on the recent advance of deep learning to provide accurate detection.
# Show Magika CLI help (default command)
docker run --rm jonlabelle/magika:latest
# Show version
docker run --rm jonlabelle/magika:latest --version
# Scan a file from the current directory
docker run --rm -v "$PWD:/workspace:ro" jonlabelle/magika:latest README.md
# Scan files matching a shell glob (expanded by your shell)
docker run --rm -v "$PWD:/workspace:ro" jonlabelle/magika:latest *.md
# Recursively scan all files in the current directory tree
docker run --rm -v "$PWD:/workspace:ro" jonlabelle/magika:latest --recursive .
python:slimmagika-python-client (via entrypoint.sh)--helpmagika)/workspace (so mounted files can be referenced relatively)pip install magika)linux/amd64, linux/arm64latestsha-<short-commit>make lint
make build
make run ARGS="--version"
make run ARGS="README.md"
If docker is unavailable, the Makefile also supports podman and nerdctl.
GitHub Actions (.github/workflows/cd.yml) builds and publishes multi-arch images to:
jonlabelle/magikaghcr.io/jonlabelle/magikaThe same workflow runs post-publish registry pruning via scripts/prune.
Content type
Image
Digest
sha256:91de45ecf…
Size
104.8 MB
Last updated
7 days ago
docker pull jonlabelle/magika