Bundle Chromium for Puppeteer routes (LinkedIn)
Browse filesSet PUPPETEER_SKIP_DOWNLOAD=0 so the image downloads Chrome; puppeteer-based routes such as /linkedin failed with 'Could not find Chrome'.
- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -93,7 +93,7 @@ COPY --from=dep-version-parser /ver/.puppeteer_version /app/.puppeteer_version
|
|
| 93 |
|
| 94 |
ARG TARGETPLATFORM
|
| 95 |
ARG USE_CHINA_NPM_REGISTRY=0
|
| 96 |
-
ARG PUPPETEER_SKIP_DOWNLOAD=
|
| 97 |
# The official recommended way to use Puppeteer on x86(_64) is to use the bundled Chromium from Puppeteer:
|
| 98 |
# https://pptr.dev/faq#q-why-doesnt-puppeteer-vxxx-workwith-chromium-vyyy
|
| 99 |
RUN \
|
|
@@ -127,7 +127,7 @@ WORKDIR /app
|
|
| 127 |
|
| 128 |
# install deps first to avoid cache miss or disturbing buildkit to build concurrently
|
| 129 |
ARG TARGETPLATFORM
|
| 130 |
-
ARG PUPPETEER_SKIP_DOWNLOAD=
|
| 131 |
# https://pptr.dev/troubleshooting#chrome-headless-doesnt-launch-on-unix
|
| 132 |
# https://github.com/puppeteer/puppeteer/issues/7822
|
| 133 |
# https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#noteworthy-obsolete-packages
|
|
|
|
| 93 |
|
| 94 |
ARG TARGETPLATFORM
|
| 95 |
ARG USE_CHINA_NPM_REGISTRY=0
|
| 96 |
+
ARG PUPPETEER_SKIP_DOWNLOAD=0
|
| 97 |
# The official recommended way to use Puppeteer on x86(_64) is to use the bundled Chromium from Puppeteer:
|
| 98 |
# https://pptr.dev/faq#q-why-doesnt-puppeteer-vxxx-workwith-chromium-vyyy
|
| 99 |
RUN \
|
|
|
|
| 127 |
|
| 128 |
# install deps first to avoid cache miss or disturbing buildkit to build concurrently
|
| 129 |
ARG TARGETPLATFORM
|
| 130 |
+
ARG PUPPETEER_SKIP_DOWNLOAD=0
|
| 131 |
# https://pptr.dev/troubleshooting#chrome-headless-doesnt-launch-on-unix
|
| 132 |
# https://github.com/puppeteer/puppeteer/issues/7822
|
| 133 |
# https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#noteworthy-obsolete-packages
|