mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 04:32:15 +01:00
chore(build): use Chromium for all arch
This commit is contained in:
@@ -194,23 +194,10 @@ RUN \
|
|||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install either Google Chrome stable on amd64 architecture or
|
# Install Chromium.
|
||||||
# Chromium on other architectures.
|
|
||||||
# See https://github.com/gotenberg/gotenberg/issues/328.
|
|
||||||
/bin/bash -c \
|
|
||||||
'set -e &&\
|
|
||||||
if [[ "$(dpkg --print-architecture)" == "amd64" ]]; then \
|
|
||||||
curl https://dl.google.com/linux/linux_signing_key.pub | apt-key add - &&\
|
|
||||||
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google-chrome.list &&\
|
|
||||||
apt-get update -qq &&\
|
apt-get update -qq &&\
|
||||||
apt-get upgrade -yqq &&\
|
apt-get upgrade -yqq &&\
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends --allow-unauthenticated google-chrome-stable &&\
|
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends chromium &&\
|
||||||
mv /usr/bin/google-chrome-stable /usr/bin/chromium; \
|
|
||||||
else \
|
|
||||||
apt-get update -qq &&\
|
|
||||||
apt-get upgrade -yqq &&\
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends chromium; \
|
|
||||||
fi' &&\
|
|
||||||
# Verify installation.
|
# Verify installation.
|
||||||
chromium --version &&\
|
chromium --version &&\
|
||||||
# Cleanup.
|
# Cleanup.
|
||||||
|
|||||||
Reference in New Issue
Block a user