Dockerfile to build a Nerd Fonts Patcher image for the Docker opensource container platform.
Nerd Fonts is a project that patches developer targeted fonts with a high number of glyphs (icons). Specifically to add a high number of extra glyphs from popular 'iconic fonts' such as Font Awesome ➶, Devicons ➶ and Octicons ➶.
Just copy all your fonts you want to patch into $(pwd)/in
directory and execute the following command:
make patch
If you want to use additional options, you can use docker run
to patch your fonts:
docker run --rm \
--volume "$(pwd)/in":/input \
--volume "$(pwd)/out":/output \
--env PUID=$(id -u) --env PGID=$(id -g) \
ghcr.io/cdalvaro/docker-nerd-fonts-patcher:latest \
--quiet --no-progressbars --complete --careful
The container will patch all files with extensions: .otf
, .ttf
, .woff
, .eot
, .ttc
inside $(pwd)/in
and
leave them into $(pwd)/out
.
Environment variables PUID
and PGID
are used to set the user and group id of the files created by the container.
More information is available at the official documentation site.
This image can be downloaded from Dockerhub
docker pull cdalvaro/docker-nerd-fonts-patcher:latest
from Quay.io too.
docker pull quay.io/cdalvaro/docker-nerd-fonts-patcher
or from GitHub Container Registry too.
docker pull ghcr.io/cdalvaro/docker-nerd-fonts-patcher