Skip to content

Commit 1585669

Browse files
authored
fix: unable to locate google chrome stable
1 parent d498d67 commit 1585669

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
77
&& mkdir -p /home/pptruser/Downloads /codecept /tests \
88
&& chown -R pptruser:pptruser /home/pptruser /codecept /tests
99

10-
# Install dependencies in a single layer to reduce image size
10+
# Install dependencies and set up Google Chrome repository
1111
RUN apt-get update --allow-releaseinfo-change && apt-get install -y --no-install-recommends \
1212
libgtk2.0-0 \
1313
libxtst6 \
@@ -16,11 +16,11 @@ RUN apt-get update --allow-releaseinfo-change && apt-get install -y --no-install
1616
xvfb \
1717
gnupg \
1818
wget \
19-
google-chrome-stable \
19+
ca-certificates \
2020
fonts-noto \
2121
fonts-freefont-ttf \
22-
&& wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg \
23-
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
22+
&& wget --quiet -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /etc/apt/keyrings/google-chrome.gpg \
23+
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
2424
&& apt-get update \
2525
&& apt-get install -y google-chrome-stable --no-install-recommends \
2626
&& apt-get clean \

0 commit comments

Comments
 (0)