{"id":50605194,"url":"https://github.com/jonlabelle/docker-magika","last_synced_at":"2026-06-05T22:01:28.556Z","repository":{"id":341928337,"uuid":"1172044261","full_name":"jonlabelle/docker-magika","owner":"jonlabelle","description":"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.","archived":false,"fork":false,"pushed_at":"2026-03-04T01:54:33.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-04T03:25:29.282Z","etag":null,"topics":["ai","docker","google","magika"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/jonlabelle/magika","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonlabelle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-03T22:16:16.000Z","updated_at":"2026-03-04T01:54:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jonlabelle/docker-magika","commit_stats":null,"previous_names":["jonlabelle/docker-magika"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jonlabelle/docker-magika","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fdocker-magika","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fdocker-magika/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fdocker-magika/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fdocker-magika/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonlabelle","download_url":"https://codeload.github.com/jonlabelle/docker-magika/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonlabelle%2Fdocker-magika/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33961252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","docker","google","magika"],"created_at":"2026-06-05T22:01:27.920Z","updated_at":"2026-06-05T22:01:28.551Z","avatar_url":"https://github.com/jonlabelle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Magika\n\n[![cd](https://github.com/jonlabelle/docker-magika/actions/workflows/cd.yml/badge.svg)](https://github.com/jonlabelle/docker-magika/actions/workflows/cd.yml)\n[![docker pulls](https://img.shields.io/docker/pulls/jonlabelle/magika)](https://hub.docker.com/r/jonlabelle/magika)\n[![image size](https://img.shields.io/docker/image-size/jonlabelle/magika/latest?label=image%20size)](https://hub.docker.com/r/jonlabelle/magika/tags)\n\n\u003e Docker image for [Magika](https://securityresearch.google/magika/introduction/overview), a novel AI-powered file type detection tool that relies on the recent advance of deep learning to provide accurate detection.\n\n## Quick start\n\n```bash\n# Show Magika CLI help (default command)\ndocker run --rm jonlabelle/magika:latest\n\n# Show version\ndocker run --rm jonlabelle/magika:latest --version\n\n# Scan a file from the current directory\ndocker run --rm -v \"$PWD:/workspace:ro\" jonlabelle/magika:latest README.md\n\n# Scan files matching a shell glob (expanded by your shell)\ndocker run --rm -v \"$PWD:/workspace:ro\" jonlabelle/magika:latest *.md\n\n# Recursively scan all files in the current directory tree\ndocker run --rm -v \"$PWD:/workspace:ro\" jonlabelle/magika:latest --recursive .\n```\n\n## Image details\n\n- Base image: `python:slim`\n- Entrypoint: compatibility wrapper (via `entrypoint.sh`) that prefers `magika` and falls back to `magika-python-client` when needed\n- Default command: `--help`\n- Runtime user: non-root (`magika`)\n- Working directory: `/workspace` (so mounted files can be referenced relatively)\n- Magika package: latest from PyPI (`pip install magika`)\n- Architectures: `linux/amd64`, `linux/arm64`\n- Note: On platforms without Rust CLI wheels, the wrapper automatically uses `magika-python-client`\n\n## Tags\n\n- `latest`\n- `sha-\u003cshort-commit\u003e`\n\n## Local development\n\n```bash\nmake lint\nmake build\nmake run ARGS=\"--version\"\nmake run ARGS=\"README.md\"\n```\n\nIf `docker` is unavailable, the `Makefile` also supports `podman` and `nerdctl`.\n\n## Publishing\n\nGitHub Actions (`.github/workflows/cd.yml`) builds and publishes multi-arch images to:\n\n- Docker Hub: `jonlabelle/magika`\n- GHCR: `ghcr.io/jonlabelle/magika`\n\nThe same workflow runs post-publish registry pruning via [`scripts/prune`](scripts/prune).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlabelle%2Fdocker-magika","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonlabelle%2Fdocker-magika","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonlabelle%2Fdocker-magika/lists"}