{"id":31048994,"url":"https://github.com/gocom/capture-website","last_synced_at":"2026-04-18T19:32:38.490Z","repository":{"id":305024053,"uuid":"1020953355","full_name":"gocom/capture-website","owner":"gocom","description":"Docker image for capturing screenshots of websites","archived":false,"fork":false,"pushed_at":"2025-07-17T19:48:13.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-14T21:38:45.713Z","etag":null,"topics":["docker-container","docker-image","sceenshot"],"latest_commit_sha":null,"homepage":"https://github.com/gocom/capture-website/pkgs/container/capture-website","language":"Makefile","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/gocom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"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}},"created_at":"2025-07-16T16:39:45.000Z","updated_at":"2025-07-17T19:49:20.000Z","dependencies_parsed_at":"2025-07-18T00:43:58.351Z","dependency_job_id":"6319f63e-e367-41b7-85c6-b5a8458466aa","html_url":"https://github.com/gocom/capture-website","commit_stats":null,"previous_names":["gocom/capture-website"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gocom/capture-website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fcapture-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fcapture-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fcapture-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fcapture-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocom","download_url":"https://codeload.github.com/gocom/capture-website/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Fcapture-website/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker-container","docker-image","sceenshot"],"created_at":"2025-09-14T21:25:58.978Z","updated_at":"2026-04-18T19:32:38.475Z","avatar_url":"https://github.com/gocom.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Capture website\n=====\n\nImage: `ghcr.io/gocom/capture-website` | [Container Registry](https://github.com/gocom/capture-website/pkgs/container/capture-website)\n\nDocker image for capturing screenshots of websites. The image wraps around\n[capture-website](https://github.com/sindresorhus/capture-website) and\n[capture-website-cli](https://github.com/sindresorhus/capture-website-cli), which\ninternally in uses [Puppeteer](https://github.com/puppeteer/puppeteer) and headless Chrome for taking screenshots\nof websites.\n\n⚡ Usage\n-----\n\nThe **capture-website** CLI utility, that is wrapped within the container, can be accessed as so:\n\n```shell\n$ docker run --cap-add=SYS_ADMIN --rm --volume ./screenshots:/app/screenshots ghcr.io/gocom/capture-website:0.1.0 --help\n```\n\nThe above would print capture-website's CLI help document. Substitute the `0.1.0` with the version tag you want to use.\nIt is recommended that you reference specific version or hash. The image follows\n[Semantic Versioning](https://semver.org/).\n\nIf the command passed to the container is not an existing executable, starts with `--` or `capture-website`,\nthe given command is passed down through the entrypoint to `capture-website`, where the process is run as `app:app`\nuser. If the container is started as a root, the `app` user is automatically mapped to the user defined with `HOST_UID`\nenvironment variable.\n\n\u003e [!NOTE]\n\u003e The image requires `SYS_ADMIN` capability since the container runs a sandboxed browser process inside of\nit. The image may work without it on some host systems, but will fail on others.\n\n📝 Example usage\n-----\n\n### Basic Docker CLI usage\n\nThe following would take screenshot of the given URL and save results to the screenshots directory:\n\n```shell\n$ docker run --rm --volume ./screenshots:/app/screenshots ghcr.io/gocom/capture-website:0.1.0 https://example.com/ --output=/screenshots/sreenshot.png\n```\n\nIn the above, substitute the version number tag with the version you want.\n\n### With Docker Compose\n\nDocker Compose is a common way to orchestrate containers in local development environments. When using Docker Compose,\nthe **capture-website** service can use and access Docker networks and hostname mappings. For example:\n\n```yml\nservices:\n  nginx:\n    image: nginx:mainline\n    networks:\n      - proxy\n\n  capture-website:\n    image: ghcr.io/gocom/capture-website:0.1.0\n    volumes:\n      - ./screenshots:/screenshots\n    networks:\n      - proxy\n    cap_add:\n      - SYS_ADMIN\n\nnetworks:\n  proxy:\n```\n\nThe `capture-website` can now access the `nginx` hostname to take screenshots of it:\n\n```shell\n$ docker compose run --rm capture-website http://nginx/ --output=/screenshots/sreenshot.png\n```\n\n🫧 Configuration\n-----\n\nThe container and its tooling can be configured with environment variables and with CLI options when running commands.\n\n### Environment variables\n\nThe following environment variables can be used to customize the generated certificates.\n\n| Variable   | Default Value | Description                                                                                                                                                |\n|------------|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `HOST_UID` | `1000`        | If the container is started as root, maps the default start up command's user to the specified UID. Generated files will be owned by the specified user.   |\n| `HOST_GID` | `1000`        | If the container is started as root, maps the default start up command's group as the specified GID. Generated files will be owned by the specified group. |\n\n### Puppeteer\n\nThe Puppeteer running inside the container can be configured with environment variables. See available options in\n[Puppeteer's configuration docs](https://pptr.dev/api/puppeteer.configuration).\n\n### capture-website\n\nThe capture-website CLI inside the container can be configured with command line flags and options. The options are\nthen passed down to the [capture-website](https://github.com/sindresorhus/capture-website) library. For available\noptions see the capture-website CLI's [README.md](https://github.com/sindresorhus/capture-website-cli) or the CLI's\n`--help` flag.\n\n🛠️ Development\n-----\n\nSee [CONTRIBUTING.md](https://raw.github.com/gocom/capture-website/master/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Fcapture-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocom%2Fcapture-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Fcapture-website/lists"}