mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 20:52:14 +01:00
fix(Dockerfile): use latest Chromium for armhf
This commit is contained in:
@@ -61,7 +61,6 @@ ARG GOTENBERG_USER_GID
|
|||||||
ARG GOTENBERG_USER_UID
|
ARG GOTENBERG_USER_UID
|
||||||
ARG NOTO_COLOR_EMOJI_VERSION
|
ARG NOTO_COLOR_EMOJI_VERSION
|
||||||
ARG PDFTK_VERSION
|
ARG PDFTK_VERSION
|
||||||
ARG TMP_CHOMIUM_VERSION_ARMHF="116.0.5845.180-1~deb12u1"
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Gotenberg" \
|
LABEL org.opencontainers.image.title="Gotenberg" \
|
||||||
org.opencontainers.image.description="A Docker-powered stateless API for PDF files." \
|
org.opencontainers.image.description="A Docker-powered stateless API for PDF files." \
|
||||||
@@ -147,9 +146,6 @@ RUN \
|
|||||||
# Install either Google Chrome stable on amd64 architecture or
|
# Install either Google Chrome stable on amd64 architecture or
|
||||||
# Chromium on other architectures.
|
# Chromium on other architectures.
|
||||||
# See https://github.com/gotenberg/gotenberg/issues/328.
|
# See https://github.com/gotenberg/gotenberg/issues/328.
|
||||||
# FIXME:
|
|
||||||
# armhf is currently not working with the latest version of Chromium.
|
|
||||||
# See: https://github.com/gotenberg/gotenberg/issues/709.
|
|
||||||
/bin/bash -c \
|
/bin/bash -c \
|
||||||
'set -e &&\
|
'set -e &&\
|
||||||
if [[ "$(dpkg --print-architecture)" == "amd64" ]]; then \
|
if [[ "$(dpkg --print-architecture)" == "amd64" ]]; then \
|
||||||
@@ -159,14 +155,6 @@ RUN \
|
|||||||
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 --allow-unauthenticated google-chrome-stable &&\
|
||||||
mv /usr/bin/google-chrome-stable /usr/bin/chromium; \
|
mv /usr/bin/google-chrome-stable /usr/bin/chromium; \
|
||||||
elif [[ "$(dpkg --print-architecture)" == "armhf" ]]; then \
|
|
||||||
apt-get update -qq &&\
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends devscripts &&\
|
|
||||||
debsnap chromium-common "$TMP_CHOMIUM_VERSION_ARMHF" -v --force --binary --architecture armhf &&\
|
|
||||||
debsnap chromium "$TMP_CHOMIUM_VERSION_ARMHF" -v --force --binary --architecture armhf &&\
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install --fix-broken -y -qq --no-install-recommends "./binary-chromium-common/chromium-common_${TMP_CHOMIUM_VERSION_ARMHF}_armhf.deb" "./binary-chromium/chromium_${TMP_CHOMIUM_VERSION_ARMHF}_armhf.deb" &&\
|
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get purge -y -qq devscripts &&\
|
|
||||||
rm -rf ./binary-chromium-common/* ./binary-chromium/*; \
|
|
||||||
else \
|
else \
|
||||||
apt-get update -qq &&\
|
apt-get update -qq &&\
|
||||||
apt-get upgrade -yqq &&\
|
apt-get upgrade -yqq &&\
|
||||||
|
|||||||
Reference in New Issue
Block a user