Closed hendrawan98 closed 1 year ago
I have the same problem :(
Your puppeteer installs brings its own chrome which doesn't work in your case.
Better is to use directly zenika/alpine-chrome:with-puppeteer
to have puppeteer correctly setup.
(Or you have to set the env var PUPPETEER_EXECUTABLE_PATH
to point to /usr/bin/chromium-browser
: https://github.com/Zenika/alpine-chrome/blob/c3f32c2b102c1ee2efd46fa4833491d7e956afaa/with-puppeteer/Dockerfile#L4)
two things,
import puppeteer from "puppeteer-core";
puppeteer
.launch({
executablePath: "/usr/bin/chromium-browser",
})
Describe the bug im using
zenika/alpine-chrome:with-node
and running the docker file on railway.app the error what i get isand my Dockerfile is
my index.js