{"id":43490409,"url":"https://github.com/devsapp/start-puppeteer","last_synced_at":"2026-02-03T18:38:07.881Z","repository":{"id":38204053,"uuid":"393873376","full_name":"devsapp/start-puppeteer","owner":"devsapp","description":"快速部署puppeteer到阿里云函数计算，支持nodejs12和custom container","archived":false,"fork":false,"pushed_at":"2024-03-22T03:12:53.000Z","size":7658,"stargazers_count":15,"open_issues_count":8,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-28T00:18:34.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/devsapp.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-08-08T06:02:14.000Z","updated_at":"2023-08-02T02:15:08.000Z","dependencies_parsed_at":"2024-03-04T09:29:11.680Z","dependency_job_id":"6bced5a0-f911-436f-a52a-ed2d96e2ee30","html_url":"https://github.com/devsapp/start-puppeteer","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/devsapp/start-puppeteer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-puppeteer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-puppeteer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-puppeteer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-puppeteer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devsapp","download_url":"https://codeload.github.com/devsapp/start-puppeteer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-puppeteer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29052647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"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":[],"created_at":"2026-02-03T10:00:19.410Z","updated_at":"2026-02-03T18:38:07.876Z","avatar_url":"https://github.com/devsapp.png","language":"JavaScript","readme":"# Puppeteer项目在阿里云函数计算2.0的实践\n\n**注意：** 如果您使用函数计算 3.0， 请直接移步到 [start-puppeteer-v3](https://github.com/devsapp/start-puppeteer-v3)\n\n本仓库提供了两个应用案例，分别是通过函数计算Node.js运行时部署Puppeteer项目，以及通过Container形式将Puppeteer项目部署到阿里云函数计算：\n\n- [Puppeteer项目在阿里云函数计算的实践](#puppeteer项目在阿里云函数计算的实践)\n  - [基于Nodejs运行时](#基于nodejs运行时)\n  - [基于Container运行时](#基于container运行时)\n\n## 基于Nodejs运行时\n\n该项目模板是一个基于 puppeteer 的截图 Web 应用\n\n- 初始化项目：`s init puppeteer-nodejs`\n- 进入项目：`cd puppeteer-nodejs`\n- 部署项目：`s deploy`\n\n\u003e 上述过程已经默认集成到了Yaml的action中，所以可以忽略\n\n详细文档可以参考[puppeteer-nodejs案例文档](./puppeteer-nodejs/src)\n\n## 基于Container运行时\n\n该项目模板是一个基于 puppeteer 的截图 Web 应用\n\n- 初始化项目：`s init puppeteer-container`\n- 进入项目：`cd puppeteer-container`\n- 在阿里云控制台启用 ACR（并且**创建镜像仓库(repo)，创建命名空间(namespace)**。）, NAS, 与 serverless 函数服务\n- 修改 s.yaml 中 customContainerConfig 一项，将原本的`image: registry.cn-hangzhou.aliyuncs.com/${your_namespace}/${your_repo}:${version}`中，`${your_namespace}`替换为您创建的命名空间，将`${your_repo}`替换为您创建的镜像仓库名称，将`${version}`替换为构建后容器镜像版本（通过 docker images 查询）。\n- 部署项目：`s deploy --use-local -y`\n\n详细文档可以参考[puppeteer-container案例文档](./puppeteer-container/src)\n","funding_links":[],"categories":["快速开始"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsapp%2Fstart-puppeteer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevsapp%2Fstart-puppeteer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsapp%2Fstart-puppeteer/lists"}