Skip to content

Commit e5c3443

Browse files
use wkhtml2pdf instead of weasyprint, use CentOS
1 parent 8b9fcbf commit e5c3443

File tree

1 file changed

+14
-25
lines changed

1 file changed

+14
-25
lines changed

docker/Dockerfile

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,23 @@
1-
FROM ubuntu:18.04
1+
FROM centos:7.5.1804
22

33
LABEL maintainer="philipp.salvisberg@trivadis.com"
44
LABEL description="Tools to generate website, pdf and ebook using Materials for MkDocs."
55
LABEL build.command="docker build . --tag trivadis/mktools:latest"
66

7-
RUN apt-get update
8-
RUN apt-get upgrade -y
9-
RUN apt-get install -y build-essential \
10-
python3-dev \
11-
python3-pip \
12-
python3-setuptools \
13-
python3-wheel \
14-
python3-cffi \
15-
libcairo2 \
16-
libpango-1.0-0 \
17-
libpangocairo-1.0-0 \
18-
libgdk-pixbuf2.0-0 \
19-
libffi-dev \
20-
shared-mime-info
21-
RUN apt-get install -y git
22-
RUN pip3 install --upgrade pip
23-
RUN pip3 install mkdocs \
24-
mkdocs-material \
25-
mkdocs-awesome-pages-plugin \
26-
pymdown-extensions \
27-
mike \
28-
weasyprint
7+
RUN yum install -y https://centos7.iuscommunity.org/ius-release.rpm
8+
RUN yum update -y
9+
RUN yum install -y python36u python36u-libs python36u-devel python36u-pip
10+
RUN yum install -y git
11+
RUN yum install -y https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
12+
RUN pip3.6 install --upgrade pip
13+
RUN pip3.6 install mkdocs \
14+
mkdocs-material \
15+
mkdocs-awesome-pages-plugin \
16+
pymdown-extensions \
17+
mike
2918

30-
ENV LC_ALL=C.UTF-8
31-
ENV LANG=C.UTF-8
19+
ENV LC_ALL=en_US.utf8
20+
ENV LANG=en_US.utf8
3221

3322
# volume for GitHub project's root folder containing docs folder
3423
RUN mkdir /data

0 commit comments

Comments
 (0)