This project provides a Docker container with pre-installed Nerd Fonts, designed to be used as a font source for other Docker containers and workflows. Instead of downloading Nerd Fonts repeatedly in your workflows, you can use this container as a font source.
- Automatically tracks new Nerd Fonts releases
- Weekly builds to ensure latest fonts are available
- All Nerd Fonts included and ready to use
- Minimal container size (Alpine-based)
- Automated GitHub Actions workflow for builds
Pull the container:
docker pull ghcr.io/watzon/docker-nerdfonts/docker-nerdfonts:latest
To use the fonts in another container, you can copy them during the build process:
services:
your-app:
build:
context: .
dockerfile: Dockerfile
volumes:
- nerd-fonts:/usr/share/fonts/nerd-fonts
volumes:
nerd-fonts:
name: nerd-fonts
Copy fonts from this container in a multi-stage build:
# First stage - copy fonts
FROM ghcr.io/watzon/docker-nerdfonts/docker-nerdfonts:latest as fonts
# Your final image
FROM your-base-image:tag
# Copy fonts from the fonts stage
COPY --from=fonts /usr/share/fonts/nerd-fonts /usr/share/fonts/nerd-fonts
# Optional: update font cache if needed
RUN fc-cache -fv
latest
- Always points to the most recent buildvX.X.X
- Specific version tags matching Nerd Fonts releases
This container is automatically rebuilt weekly through GitHub Actions. It checks for new Nerd Fonts releases and rebuilds when updates are available. The workflow:
- Checks for new Nerd Fonts releases
- Builds and pushes new container images when updates are found
- Maintains version tracking through git commits
To build the container locally:
docker build -t nerdfonts .
This project is provided under MIT License. Note that Nerd Fonts has its own license terms which can be found at the Nerd Fonts repository.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- The container is meant to be used as a font source, not as a running container
- All fonts are stored in
/usr/share/fonts/nerd-fonts/
- The container automatically tracks and updates with new Nerd Fonts releases