crazy-max/docker-linguist

GitHub Linguist Docker image

Dockerfile

38

222 commits

updated Jul 21, 2026

See the code

README

Latest Version Build Status Docker Stars Docker Pulls
Become a sponsor Donate Paypal

About

Docker image to run GitHub Linguist, a library used on GitHub.com to detect blob languages.

[!TIP] Want to be notified of new releases? Check out 🔔 Diun (Docker Image Update Notifier) project!


Build locally

git clone https://github.com/crazy-max/docker-linguist.git
cd docker-linguist

# Build image and output to docker (default)
docker buildx bake

# Build multi-platform image
docker buildx bake image-all

Image

RegistryImage
Docker Hubcrazymax/linguist
GitHub Container Registryghcr.io/crazy-max/linguist

Following platforms for this image are available:

$ docker buildx imagetools inspect crazymax/linguist --format "{{json .Manifest}}" | \
  jq -r '.manifests[] | select(.platform.os != null and .platform.os != "unknown") | .platform | "\(.os)/\(.architecture)\(if .variant then "/" + .variant else "" end)"'

linux/amd64
linux/arm/v7
linux/arm64

Usage

The entrypoint is github-linguist itself:

$ docker run -t --rm crazymax/linguist:latest --help
  Linguist v7.3.1
  Detect language type for a file, or, given a repository, determine language breakdown.

  Usage: linguist <path>
         linguist <path> [--breakdown] [--json]
         linguist [--breakdown] [--json]

Example with this repository cloned and analyzed by linguist:

$ git clone https://github.com/portapps/portapps.git
$ docker run -t --rm -v "$(pwd)/portapps:/repo" crazymax/linguist:latest
85.51%  Go
10.00%  Inno Setup
4.49%   Shell

Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You can also support this project by becoming a sponsor on GitHub or by making a PayPal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! 🙏

License

MIT. See LICENSE for more details.

alpine-linux
docker
github
linguist

crazy-max/docker-linguist

GitHub Linguist Docker image

Dockerfile

38

222 commits

updated Jul 21, 2026

See the code

README

Latest Version Build Status Docker Stars Docker Pulls
Become a sponsor Donate Paypal

About

Docker image to run GitHub Linguist, a library used on GitHub.com to detect blob languages.

[!TIP] Want to be notified of new releases? Check out 🔔 Diun (Docker Image Update Notifier) project!


Build locally

git clone https://github.com/crazy-max/docker-linguist.git
cd docker-linguist

# Build image and output to docker (default)
docker buildx bake

# Build multi-platform image
docker buildx bake image-all

Image

RegistryImage
Docker Hubcrazymax/linguist
GitHub Container Registryghcr.io/crazy-max/linguist

Following platforms for this image are available:

$ docker buildx imagetools inspect crazymax/linguist --format "{{json .Manifest}}" | \
  jq -r '.manifests[] | select(.platform.os != null and .platform.os != "unknown") | .platform | "\(.os)/\(.architecture)\(if .variant then "/" + .variant else "" end)"'

linux/amd64
linux/arm/v7
linux/arm64

Usage

The entrypoint is github-linguist itself:

$ docker run -t --rm crazymax/linguist:latest --help
  Linguist v7.3.1
  Detect language type for a file, or, given a repository, determine language breakdown.

  Usage: linguist <path>
         linguist <path> [--breakdown] [--json]
         linguist [--breakdown] [--json]

Example with this repository cloned and analyzed by linguist:

$ git clone https://github.com/portapps/portapps.git
$ docker run -t --rm -v "$(pwd)/portapps:/repo" crazymax/linguist:latest
85.51%  Go
10.00%  Inno Setup
4.49%   Shell

Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You can also support this project by becoming a sponsor on GitHub or by making a PayPal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! 🙏

License

MIT. See LICENSE for more details.

alpine-linux
docker
github
linguist

Significant stargazers

Yuping Zuo

20 followers · starred Sep 2019