From 16f241d98e6f90569abe8c6e349f89ac21e134b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=A0=E8=90=9D=E5=B0=8F=E8=A5=BF=E7=93=9C?= <82745795+DNLINYJ@users.noreply.github.com> Date: Sat, 13 May 2023 18:34:31 +0800 Subject: [PATCH] fixed: Failed to launch the browser process! --- Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76482fe..380e3c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,16 @@ RUN apt update && \ libxfixes3 \ libxrandr2 \ libgbm1 \ - libasound2 \ - && rm -rf /var/lib/apt/lists/* + libasound2 + +ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true + +RUN apt-get update && apt install gnupg wget -y && \ + wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \ + sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \ + apt-get update && \ + apt install google-chrome-stable -y --no-install-recommends && \ + rm -rf /var/lib/apt/lists/* USER 1000