File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,18 @@ USER root
15
15
# google-chrome-unstable
16
16
# ============================================
17
17
ARG CHROME_VERSION="google-chrome-stable"
18
+ ARG TARGETARCH=amd64
18
19
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor | tee /etc/apt/trusted.gpg.d/google.gpg >/dev/null \
19
20
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
20
21
&& apt-get update -qqy \
21
- && apt-get -qqy --no-install-recommends install \
22
- ${CHROME_VERSION:-google-chrome-stable} \
22
+ && if echo "${CHROME_VERSION}" | grep -qE "google-chrome-stable_[0-9]*" ; \
23
+ then \
24
+ wget -qO google-chrome.deb "https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/${CHROME_VERSION}_${TARGETARCH}.deb" \
25
+ && apt-get -qqy --no-install-recommends install --allow-downgrades ./google-chrome.deb \
26
+ && rm -rf google-chrome.deb ; \
27
+ else \
28
+ apt-get -qqy --no-install-recommends install ${CHROME_VERSION} ; \
29
+ fi \
23
30
&& rm /etc/apt/sources.list.d/google-chrome.list \
24
31
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
25
32
You can’t perform that action at this time.
0 commit comments