{"id":20147695,"url":"https://github.com/surnet/docker-wkhtmltopdf","last_synced_at":"2025-05-16T01:04:11.895Z","repository":{"id":46243454,"uuid":"119107617","full_name":"Surnet/docker-wkhtmltopdf","owner":"Surnet","description":"wkhtmltopdf for multiple base images","archived":false,"fork":false,"pushed_at":"2025-05-08T10:34:09.000Z","size":90,"stargazers_count":380,"open_issues_count":2,"forks_count":68,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-16T01:03:38.141Z","etag":null,"topics":["alpine","docker","docker-image","dockerfile","node","python","wkhtmltoimage","wkhtmltopdf","wkhtmltox"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/u/surnet/","language":"Shell","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/Surnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["chdanielmueller"]}},"created_at":"2018-01-26T21:56:31.000Z","updated_at":"2025-05-14T16:00:31.000Z","dependencies_parsed_at":"2024-04-02T11:48:03.353Z","dependency_job_id":"2c5880a0-7964-4acf-8ba9-bf9506e23f68","html_url":"https://github.com/Surnet/docker-wkhtmltopdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surnet%2Fdocker-wkhtmltopdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surnet%2Fdocker-wkhtmltopdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surnet%2Fdocker-wkhtmltopdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Surnet%2Fdocker-wkhtmltopdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Surnet","download_url":"https://codeload.github.com/Surnet/docker-wkhtmltopdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448579,"owners_count":22072764,"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":["alpine","docker","docker-image","dockerfile","node","python","wkhtmltoimage","wkhtmltopdf","wkhtmltox"],"created_at":"2024-11-13T22:30:38.550Z","updated_at":"2025-05-16T01:04:11.864Z","avatar_url":"https://github.com/Surnet.png","language":"Shell","readme":"# docker-wkhtmltopdf\n\nThis repo contains scripts to create docker images which will be available in multiple variants.\n\nThe purpose is to publish docker images with a working and patched wkhtmltopdf installation and keep them as small as possible while delivering all functions.\n\n## Naming\n\nThe published images follow a naming convention.\n\n### Image name\n\nThe image name follows the format:\n\n`surnet/\u003cos\u003e-\u003cbase\u003e-wkhtmltopdf` or `surnet/\u003cos/base\u003e-wkhtmltopdf`\n\n- `\u003cos\u003e` matches the underlaying os.\n- `\u003cbase\u003e` matches the used base image.\n- `\u003cos/base\u003e` matches the used base image if the os and base image are the same.\n\ne.g. `surnet/alpine-node-wkhtmltopdf` or `surnet/alpine-wkhtmltopdf`\n\n### Tags\n\nThe tags represent version numbers which follow the format:\n\n`\u003c1\u003e-\u003c2\u003e-\u003c3\u003e`\n\n- `\u003c1\u003e` matches the version of the base image.\n- `\u003c2\u003e` matches the wkhtmltopdf version.\n- `\u003c3\u003e` matches the Edition (see next chapter).\n\ne.g. `3.12.4-0.12.6-small`\n\n## Editions\n\nThere are two editions available for each version.\n\n- `small` contains only wkhtmltopdf. This should be sufficient for most use-cases\n- `full` contains wkhtmltopdf, wkhtmltoimage and the libraries.\n\n## Available Images\n\n### surnet/alpine-wkhtmltopdf\n\n[![Docker Stars](https://img.shields.io/docker/stars/surnet/alpine-wkhtmltopdf.svg)](https://hub.docker.com/r/surnet/alpine-wkhtmltopdf/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/surnet/alpine-wkhtmltopdf.svg)](https://hub.docker.com/r/surnet/alpine-wkhtmltopdf/)\n\nThis image can be used as a base for your project or directly used via bash.\n\nFor a list of available versions please see the page on [Docker Hub](https://hub.docker.com/r/surnet/alpine-wkhtmltopdf/tags/) or the [GitHub Container Registry](https://github.com/orgs/Surnet/packages/container/package/alpine-wkhtmltopdf).\nIf a version you would like is missing please open an issue on this repo.\n\n#### Docker Hub\n\n```yaml\nFROM surnet/alpine-wkhtmltopdf:\u003cversion\u003e\n```\n\n```bash\ndocker run surnet/alpine-wkhtmltopdf:\u003cversion\u003e google.com - \u003e test.pdf\n```\n\n#### GitHub Container Registry\n\n```yaml\nFROM ghcr.io/surnet/alpine-wkhtmltopdf:\u003cversion\u003e\n```\n\n```bash\ndocker run ghcr.io/surnet/alpine-wkhtmltopdf:\u003cversion\u003e google.com - \u003e test.pdf\n```\n\n### surnet/alpine-node-wkhtmltopdf\n\n[![Docker Stars](https://img.shields.io/docker/stars/surnet/alpine-node-wkhtmltopdf.svg)](https://hub.docker.com/r/surnet/alpine-node-wkhtmltopdf/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/surnet/alpine-node-wkhtmltopdf.svg)](https://hub.docker.com/r/surnet/alpine-node-wkhtmltopdf/)\n\nThis image can be used as a base for your NodeJS project.\n\nFor a list of available versions please see the page on [Docker Hub](https://hub.docker.com/r/surnet/alpine-node-wkhtmltopdf/tags/) or the [GitHub Container Registry](https://github.com/orgs/Surnet/packages/container/package/alpine-node-wkhtmltopdf).\nIf a version you would like is missing please open an issue on this repo.\n\n#### Docker Hub\n\n```yaml\nFROM surnet/alpine-node-wkhtmltopdf:\u003cversion\u003e\n```\n\n#### GitHub Container Registry\n\n```yaml\nFROM ghcr.io/surnet/alpine-node-wkhtmltopdf:\u003cversion\u003e\n```\n\n### surnet/alpine-python-wkhtmltopdf\n\n[![Docker Stars](https://img.shields.io/docker/stars/surnet/alpine-python-wkhtmltopdf.svg)](https://hub.docker.com/r/surnet/alpine-python-wkhtmltopdf/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/surnet/alpine-python-wkhtmltopdf.svg)](https://hub.docker.com/r/surnet/alpine-python-wkhtmltopdf/)\n\nThis image can be used as a base for your Python project.\n\nFor a list of available versions please see the page on [Docker Hub](https://hub.docker.com/r/surnet/alpine-python-wkhtmltopdf/tags/) or the [GitHub Container Registry](https://github.com/orgs/Surnet/packages/container/package/alpine-python-wkhtmltopdf).\nIf a version you would like is missing please open an issue on this repo.\n\n#### Docker Hub\n\n```yaml\nFROM surnet/alpine-python-wkhtmltopdf:\u003cversion\u003e\n```\n\n#### GitHub Container Registry\n\n```yaml\nFROM ghcr.io/surnet/alpine-python-wkhtmltopdf:\u003cversion\u003e\n```\n\n## Other Images\n\nIf you are using another image based on alpine you can use the following Dockerfile as a starting point.\nJust replace the `openjdk:19-jdk-alpine3.16` with the alpine based image you would like to use.\nIf you do not need wkhtmltoimage or the libs omit the last two lines.\nPlease check if there is a newer version of `surnet/alpine-wkhtmltopdf` to use than the one described below.\n\n```Dockerfile\nFROM surnet/alpine-wkhtmltopdf:3.20.2-0.12.6-full as wkhtmltopdf\nFROM golang:1.22.5-alpine3.20\n\n# Install dependencies for wkhtmltopdf\nRUN apk add --no-cache \\\n    libstdc++ \\\n    libx11 \\\n    libxrender \\\n    libxext \\\n    libssl3 \\\n    ca-certificates \\\n    fontconfig \\\n    freetype \\\n    ttf-dejavu \\\n    ttf-droid \\\n    ttf-freefont \\\n    ttf-liberation \\\n    # more fonts\n  \u0026\u0026 apk add --no-cache --virtual .build-deps \\\n    msttcorefonts-installer \\\n  # Install microsoft fonts\n  \u0026\u0026 update-ms-fonts \\\n  \u0026\u0026 fc-cache -f \\\n  # Clean up when done\n  \u0026\u0026 rm -rf /tmp/* \\\n  \u0026\u0026 apk del .build-deps\n\n# Copy wkhtmltopdf files from docker-wkhtmltopdf image\nCOPY --from=wkhtmltopdf /bin/wkhtmltopdf /bin/wkhtmltopdf\nCOPY --from=wkhtmltopdf /bin/wkhtmltoimage /bin/wkhtmltoimage\nCOPY --from=wkhtmltopdf /lib/libwkhtmltox* /lib/\n```\n\n## Contribute\n\nPlease feel free to open a issue or pull request with suggestions.\n\nKeep in mind that the build process of these container takes some (a lot of) time.\n\n## Credits\n\nBased upon the following repos/inputs:\n- https://github.com/nodejs/docker-node\n- https://github.com/alloylab/Docker-Alpine-wkhtmltopdf\n- https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1794\n- https://github.com/aantonw/docker-alpine-wkhtmltopdf-patched-qt\n","funding_links":["https://github.com/sponsors/chdanielmueller"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurnet%2Fdocker-wkhtmltopdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurnet%2Fdocker-wkhtmltopdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurnet%2Fdocker-wkhtmltopdf/lists"}