Skip to content

Commit b1964fa

Browse files
committed
fixes broken dockerfile: adds centos8 repo to install x11 fonts
(cherry picked from commit a87c114)
1 parent 3bb8872 commit b1964fa

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

docker/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ WORKDIR /app
66
COPY app.jar ./app.jar
77
COPY entrypoint.sh ./entrypoint.sh
88

9-
# Install wkhtmltopdf
109
RUN yum update -y && \
11-
yum install -y libX11 libXext libXrender libjpeg xz xorg-x11-fonts-Type1 git-core && \
12-
curl -kLO http://mirror.centos.org/centos/8/AppStream/aarch64/os/Packages/xorg-x11-fonts-75dpi-7.5-19.el8.noarch.rpm && \
13-
rpm -Uvh xorg-x11-fonts-75dpi-7.5-19.el8.noarch.rpm && \
10+
yum install -y libX11 libXext libXrender libjpeg xz xorg-x11-fonts-Type1 git-core
11+
12+
# Install wkhtmltopdf
13+
COPY yum.repos.d/centos8.repo /etc/yum.repos.d/centos8.repo
14+
RUN yum install -y xorg-x11-fonts-75dpi && \
1415
curl -kLO https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos8.x86_64.rpm && \
1516
rpm -Uvh wkhtmltox-0.12.5-1.centos8.x86_64.rpm && chmod +x entrypoint.sh
1617

docker/yum.repos.d/centos8.repo

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[centos-baseos]
2+
name=CentOS-8-BaseOS
3+
baseurl=http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/
4+
enabled=1
5+
gpgcheck=1
6+
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official
7+
8+
[centos-appstream]
9+
name=CentOS-8-AppStream
10+
baseurl=http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/
11+
enabled=1
12+
gpgcheck=1
13+
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official

0 commit comments

Comments
 (0)