{"id":28635460,"url":"https://github.com/dmstr/docker-fonts","last_synced_at":"2025-06-12T17:10:31.810Z","repository":{"id":33886312,"uuid":"137083720","full_name":"dmstr/docker-fonts","owner":"dmstr","description":"Self-host fonts (Google)","archived":false,"fork":false,"pushed_at":"2022-02-15T10:57:25.000Z","size":2772,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-04-10T17:03:31.973Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmstr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-12T14:28:16.000Z","updated_at":"2023-04-10T17:03:31.974Z","dependencies_parsed_at":"2022-08-07T23:30:28.292Z","dependency_job_id":null,"html_url":"https://github.com/dmstr/docker-fonts","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/dmstr/docker-fonts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fdocker-fonts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fdocker-fonts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fdocker-fonts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fdocker-fonts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmstr","download_url":"https://codeload.github.com/dmstr/docker-fonts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fdocker-fonts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259509474,"owners_count":22868837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-06-12T17:10:18.255Z","updated_at":"2025-06-12T17:10:31.797Z","avatar_url":"https://github.com/dmstr.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-fonts\n\nThis container build a static nginx webserver with font files.\n\nTo get rid of all build dependencies, we use multi-stage build. \n\nNevertheless, the finished image has a size of about \u003e4GB due to the font files.\n\nTo see which fonts are available, the directory index for the font directories is activated in the nginx config.\n\nIf you need SSL we recommend to use a proxy like [jwilder/nginx-proxy](https://github.com/jwilder/nginx-proxy) in front of this container.\n\n### Google Fonts\n\n- src: https://github.com/google/fonts/ \n- fonts are available in /google-fonts/* directory in DocumentRoot\n\nSince the master file only provides ttf formats, all existing fonts are also converted to woff, woff2 and eot formats.\n\nTools used to convert fonts:\n- for woff2 https://github.com/google/woff2.git\n- for woff, and eot https://github.com/ananthakumaran/webify\n\n\n### ionicons\n\n- src: https://github.com/driftyco/ionicons/archive/v2.0.1.zip\n- fonts and CSS files are available in /ionicons/* directory in DocumentRoot\n\n\n## glyphicons \n- src: https://github.com/twbs/bootstrap/tree/v3.3.7/fonts\n- glyphicons fonts v1.9, bundled within bootstrap 3 were released under the same license MIT License as Bootstrap. \n- Newer versions are no longer available under a free license, see: https://glyphicons.com/old/license.html#old-halflings-bootstrap and https://github.com/twbs/bootstrap/issues/3942#issuecomment-504103949\n\n## build\n\nSince converting the individual fonts (especially for woff2) takes time, building can take quite a long time.\n\n    docker build . -t docker-nginx-fonts\n\n## test build\n\nSince downloading and converting all Google fonts is expensive (time and disk space), \nyou can do a test build with a small static subset of fonts to make sure everything works.\n\n    docker build . --build-arg TEST_BUILD=1 -t docker-nginx-fonts-dev\n\n## run\n\n    docker run --rm -p1080:80 -d --name fonts-server docker-nginx-fonts\n   \n## run bash inside container\n\n    docker exec -it fonts-server bash\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fdocker-fonts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmstr%2Fdocker-fonts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fdocker-fonts/lists"}