This repository was archived by the owner on Jun 22, 2024. It is now read-only.
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
1515# google-chrome-unstable
1616# ============================================
1717ARG CHROME_VERSION="google-chrome-stable"
18+ ARG TARGETARCH=amd64
1819RUN 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 \
1920 && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
2021 && 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 \
2330 && rm /etc/apt/sources.list.d/google-chrome.list \
2431 && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
2532
You can’t perform that action at this time.
0 commit comments