Skip to content

Commit 6fece69

Browse files
authored
Merge pull request #31 from DNLINYJ/master
fixed: Failed to launch the browser process
2 parents 4b5f32f + 16f241d commit 6fece69

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ RUN apt update && \
1313
libxfixes3 \
1414
libxrandr2 \
1515
libgbm1 \
16-
libasound2 \
17-
&& rm -rf /var/lib/apt/lists/*
16+
libasound2
17+
18+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
19+
20+
RUN apt-get update && apt install gnupg wget -y && \
21+
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
22+
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
23+
apt-get update && \
24+
apt install google-chrome-stable -y --no-install-recommends && \
25+
rm -rf /var/lib/apt/lists/*
1826

1927
USER 1000
2028

0 commit comments

Comments
 (0)