A port of puppeteer running on Deno
Hi @lucacasonato ! I am trying to create a docker image where I use Deno with Oak and Puppeteer, but I am having some issues with Puppeteer. So far, this is my docker image, but I cannot seem to make it work. I have two main issues at the moment: 1: The install script does not seem to recognize that an existing installation exists 2: Puppeteer is not able to run the downloaded chromium Here is my Dockerfile (assume that all the variables are set). Let me know if I can provide you with any other information! ```dockerfile FROM hayd/alpine-deno:1.7.2 EXPOSE ${MICROSERVICE_PORT} WORKDIR /app # As provided by https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-on-alpine RUN apk add --no-cache \ nss \ freetype \ freetype-dev \ harfbuzz \ ca-certificates \ ttf-freefont ENV PUPPETEER_EXECUTABLE_PATH=/deno-dir/deno_puppeteer/chromium/linux-818858/chrome-linux/chrome ADD . . RUN PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@${PUPPETEER_VERSION}/install.ts RUN deno install -qAf --unstable https://deno.land/x/denon/denon.ts RUN deno cache --unstable src/deps.ts RUN deno cache --unstable src/mod.ts USER deno ENTRYPOINT [ "denon"] CMD ["run","--unstable","-A","src/mod.ts" ] ``` This is the error that I am receiving when I try to use Puppeteer: ```sh Error: Failed to launch the browser process! TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md at waitForWSEndpoint (BrowserRunner.ts:174:9) at async BrowserRunner.setupConnection (BrowserRunner.ts:143:31) at async ChromeLauncher.launch (Launcher.ts:108:26) at async createPDF (pdf-handler.ts:4:19) at async routes.ts:14:19 at async dispatch (middleware.ts:41:7) at async dispatch (middleware.ts:41:7) at async dispatch (middleware.ts:41:7) at async Application.#handleRequest (application.ts:252:9) ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by halvardssm and has received 6 comments.